From 2f3ba1be220861579d4e8c396edd53c0fd451d4e Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Mon, 11 Jan 2021 12:04:28 +0200 Subject: [PATCH] fix(server): correctly sets path for app proxy --- packages/server/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/app.js b/packages/server/app.js index 4fe3622fe..d6ff2122b 100644 --- a/packages/server/app.js +++ b/packages/server/app.js @@ -113,10 +113,10 @@ exports.startHttp = async ( app ) => { // Production mode -> serve things statically. else { - app.use( '/', express.static( path.resolve( `${appRoot}/../packages/frontend/dist` ) ) ) + app.use( '/', express.static( path.resolve( `${appRoot}/../frontend/dist` ) ) ) app.all( '*', async ( req, res ) => { - res.sendFile( path.resolve( `${appRoot}/../packages/frontend/dist/app.html` ) ) + res.sendFile( path.resolve( `${appRoot}/../frontend/dist/app.html` ) ) } ) }