temp workaround: remove use of get static prop

This commit is contained in:
Maidul Islam
2023-10-16 15:03:55 +01:00
parent abe1f54aab
commit e5347719c3
2 changed files with 20 additions and 21 deletions
+2 -3
View File
@@ -212,11 +212,10 @@ const main = async () => {
app.use("/api", healthCheck);
if (process.env.NODE_ENV == "production") {
const dir = path.join(__dirname, "../frontend-build");
process.chdir(dir);
const nextJsBuildPath = path.join(__dirname, "../frontend-build");
const nextApp = next({
dev: false,
dir
dir: nextJsBuildPath
});
const nextHandler = nextApp.getRequestHandler();