From 4b69b48007f681b69100391b81380c3f93768a9a Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Fri, 29 Jan 2021 11:26:26 +0100 Subject: [PATCH] fix issue where the app wouldn't start in prod mode if preboot was disabled --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index f857050ed5..ada6c9f040 100644 --- a/server.ts +++ b/server.ts @@ -171,7 +171,7 @@ function ngApp(req, res) { } else { // If preboot is disabled, just serve the client console.log('Universal off, serving for direct CSR'); - res.sendFile(indexHtml); + res.sendFile(DIST_FOLDER + '/index.html'); } }