From e0dc47351b3359ccb8fc726ed3ec196911d358fe Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 13 Feb 2024 20:35:50 +0700 Subject: [PATCH] wip fix --- pkgs/utils/deploy.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/utils/deploy.ts b/pkgs/utils/deploy.ts index d8973dc..f4e6481 100644 --- a/pkgs/utils/deploy.ts +++ b/pkgs/utils/deploy.ts @@ -93,8 +93,11 @@ export const deploy = { if (!g.deploy.init) { g.deploy.init = true; g.deploy.raw = read(dir(`app/web/config.json`), "json"); - for (const [k, v] of Object.entries(g.deploy.raw)) { - (g.deploy.config as any)[k] = v; + + if (g.deploy.raw) { + for (const [k, v] of Object.entries(g.deploy.raw)) { + (g.deploy.config as any)[k] = v; + } } }