Skip to content

Commit 43bf7df

Browse files
committed
refactor(config): rename initial admin email to override admin email
- Update environment variable name from INITIAL_ADMIN_EMAIL to OVERRIDE_ADMIN_EMAIL - Modify documentation to reflect that this variable is used to set or replace the single administrator account on startup
1 parent ae50b41 commit 43bf7df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/config/environment_config.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ abstract final class EnvironmentConfig {
134134
/// Returns `null` if the `SENDGRID_API_URL` is not set.
135135
static String? get sendGridApiUrl => _env['SENDGRID_API_URL'];
136136

137-
/// Retrieves the initial admin email from the environment, if provided.
137+
/// Retrieves the override admin email from the environment, if provided.
138138
///
139-
/// This is used for seeding the first administrator account on startup.
140-
/// Returns `null` if the `INITIAL_ADMIN_EMAIL` is not set.
141-
static String? get initialAdminEmail => _env['INITIAL_ADMIN_EMAIL'];
139+
/// This is used to set or replace the single administrator account on startup.
140+
/// Returns `null` if the `OVERRIDE_ADMIN_EMAIL` is not set.
141+
static String? get overrideAdminEmail => _env['OVERRIDE_ADMIN_EMAIL'];
142142
}

0 commit comments

Comments
 (0)