diff --git a/api/server.ts b/api/server.ts index 2951e3b..28d1596 100644 --- a/api/server.ts +++ b/api/server.ts @@ -43,7 +43,8 @@ app.use('/api/server-metrics', serverMetricsRouter) // Serve static files in production if (isProduction) { - const distPath = path.join(__dirname, '..', 'dist') + // __dirname is /app/api/dist, need to go up 2 levels to /app/dist + const distPath = path.join(__dirname, '..', '..', 'dist') app.use(express.static(distPath)) // SPA fallback - serve index.html for all non-API routes