From 7627feb3c966c66cf3074300ae5a44762a7de81a Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 28 Jun 2024 00:48:11 +0700 Subject: [PATCH] fix --- pkgs/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/index.ts b/pkgs/index.ts index 5f0817d..339e4a9 100644 --- a/pkgs/index.ts +++ b/pkgs/index.ts @@ -30,7 +30,11 @@ if (!(await existsAsync(dir("app/srv")))) { if (!process.env.PORT) { g.port = 3000; - const env = genEnv({ ...parseEnv(".env"), PORT: g.port }); + const env = genEnv({ + ...parseEnv(".env"), + ...parseEnv(dir("app/db/.env")), + PORT: g.port, + }); await Bun.write(".env", env); } else { g.port = parseInt(process.env.PORT);