add config module

This commit is contained in:
liuyi 2025-06-12 18:12:21 +08:00
parent cb15a976f1
commit 92b93e2e89
2 changed files with 455 additions and 1133 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ export class Env {
envs.push(
findUpSync([`.env.${EnvironmentType.DEVELOPMENT}`, `.env.${EnvironmentType.DEV}`]),
);
} else if (this.isProd) {
} else if (this.isProd()) {
envs.push(
findUpSync([`.env.${EnvironmentType.PRODUCTION}`, `.env.${EnvironmentType.PROD}`]),
);