diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-07 10:54:23 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-07 10:54:23 -0700 |
| commit | 680f4cdd61ab718d946afe0fd0d23828106bfda1 (patch) | |
| tree | 12e53678d67a24699f1be6a410dc469f7876b601 /packages/core/src | |
| parent | 63757d6a7ae6dcff47e912578903ed4040b2b82f (diff) | |
More version simplifiction. (#810)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/config/config.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 0d69ac04..c25bc8fc 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -316,10 +316,9 @@ function findEnvFile(startDir: string): string | null { export function loadEnvironment(): void { const envFilePath = findEnvFile(process.cwd()); - if (!envFilePath) { - return; + if (envFilePath) { + dotenv.config({ path: envFilePath }); } - dotenv.config({ path: envFilePath }); } export function createServerConfig(params: ConfigParameters): Config { |
