From 7b4288fe869239ccac9c3cf38a978a31e623a22f Mon Sep 17 00:00:00 2001 From: LaurensBartelds Date: Fri, 24 Apr 2026 22:52:53 +0200 Subject: [PATCH] fix: update route handling for static files to improve frontend serving --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index f4b6d3e..32585bf 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -39,7 +39,7 @@ const frontendDistPath = path.join(__dirname, '../../frontend/dist') if (fs.existsSync(frontendDistPath)) { console.log(`Serving frontend from: ${frontendDistPath}`) app.use(express.static(frontendDistPath)) - app.get('*', (req, res) => { + app.get('*path', (req, res) => { if (!req.path.startsWith('/api')) { res.sendFile(path.join(frontendDistPath, 'index.html')) } else {