mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix(server): read the .env file on time (#12051)
This commit is contained in:
@@ -132,4 +132,8 @@ export class Env implements AppEnv {
|
||||
}
|
||||
}
|
||||
|
||||
globalThis.env = new Env();
|
||||
export const createGlobalEnv = () => {
|
||||
if (!globalThis.env) {
|
||||
globalThis.env = new Env();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user