fix(server): read the .env file on time (#12051)

This commit is contained in:
congzhou09
2025-04-29 15:48:17 +08:00
committed by GitHub
parent 83670ab335
commit f5f7cbb105
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -132,4 +132,8 @@ export class Env implements AppEnv {
}
}
globalThis.env = new Env();
export const createGlobalEnv = () => {
if (!globalThis.env) {
globalThis.env = new Env();
}
};