fix: with env.DEV, static files' path needed an update after recent workspaces changes
Massimo Melina committed
Mar 8, 2022 at 12:35 UTC
1c6b75d8c03756abb51df99e45b3b0f915fed35b
1 file changed
+1
-1
server/src/serveFrontend.ts
+1
-1
@@ -30,7 +30,7 @@ function serveProxyFrontend(port?: string) { // used for development
30
}
31
32
// in case of dev env we have our static files within the 'dist' folder'
33
-const DEV_STATIC = process.env.DEV ? 'dist/' : ''
33
+const DEV_STATIC = process.env.DEV ? '../dist/' : ''
34
35
const serveStaticFrontend : Koa.Middleware = async (ctx, next) => {
36
const isDir = ctx.path.endsWith('/')