diff --git a/src/server/app.ts b/src/server/app.ts index 6ba0d42..3324037 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -75,7 +75,7 @@ app.get('/health', (req, res) => { const clientPath = path.join(process.cwd(), 'dist', 'client'); if (fs.existsSync(clientPath)) { app.use(express.static(clientPath)); - app.get('/*', (req, res) => { + app.get('(.*)', (req, res) => { if (!req.path.startsWith('/api') && !req.path.startsWith('/uploads')) { res.sendFile(path.join(clientPath, 'index.html')); }