fix(server): correctly sets path for app proxy

This commit is contained in:
Dimitrie Stefanescu
2021-01-11 12:04:28 +02:00
committed by GitHub
parent 5b60928f47
commit 2f3ba1be22
+2 -2
View File
@@ -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` ) )
} )
}