More version simplifiction. (#810)

This commit is contained in:
Tommaso Sciortino
2025-06-07 10:54:23 -07:00
committed by GitHub
parent eeaff25857
commit 1b6463c220
8 changed files with 13 additions and 65 deletions

View File

@@ -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 {