Fix: Serve frontend with binary

This commit is contained in:
Daniel Hougaard
2024-07-06 01:30:27 +02:00
parent 85cfac512c
commit 754404d905
+2 -2
View File
@@ -80,8 +80,8 @@ export const main = async ({ db, smtp, logger, queue, keyStore }: TMain) => {
if (appCfg.isProductionMode) { if (appCfg.isProductionMode) {
await server.register(registerExternalNextjs, { await server.register(registerExternalNextjs, {
standaloneMode: appCfg.STANDALONE_MODE, standaloneMode: appCfg.STANDALONE_MODE || process?.pkg,
dir: path.join(__dirname, "../../"), dir: path.join(__dirname, process?.pkg ? "../../../" : "../../"),
port: appCfg.PORT port: appCfg.PORT
}); });
} }