From e0669cae7ceb7fdb72778500b1aba9cb598481dc Mon Sep 17 00:00:00 2001 From: nafees nazik Date: Sun, 15 Oct 2023 11:47:06 +0530 Subject: [PATCH] chore: update path --- backend/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 020c7a96c..4ea684f30 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -90,7 +90,7 @@ const SmeeClient = require("smee-client"); // eslint-disable-line import path from "path"; import next from "next"; -const dir = path.join(__dirname, "../../frontend"); +const dir = path.join(__dirname, "../frontend-build"); const main = async () => { await setup(); @@ -214,6 +214,7 @@ const main = async () => { app.use("/api", healthCheck); if (process.env.NODE_ENV === "production") { + process.chdir(dir); const nextApp = next({ dev: false, dir