This commit is contained in:
Rizky 2024-02-13 20:35:50 +07:00
parent a71b32a9a8
commit e0dc47351b
1 changed files with 5 additions and 2 deletions

View File

@ -93,10 +93,13 @@ export const deploy = {
if (!g.deploy.init) { if (!g.deploy.init) {
g.deploy.init = true; g.deploy.init = true;
g.deploy.raw = read(dir(`app/web/config.json`), "json"); g.deploy.raw = read(dir(`app/web/config.json`), "json");
if (g.deploy.raw) {
for (const [k, v] of Object.entries(g.deploy.raw)) { for (const [k, v] of Object.entries(g.deploy.raw)) {
(g.deploy.config as any)[k] = v; (g.deploy.config as any)[k] = v;
} }
} }
}
return g.deploy.config; return g.deploy.config;
}, },