validateEnvFile function

bool validateEnvFile(
  1. String envPath
)

Validate the env file

Implementation

bool validateEnvFile(String envPath) {
  final contents = read(envPath).toParagraph();
  return RegExp(
    r'^SUPABASE_URL\s*=\s*.*$.*^SUPABASE(_ANON)?_KEY\s*=\s*.*$',
    multiLine: true,
    dotAll: true,
  ).hasMatch(contents);
}