fix: pin Express to v4 to avoid path-to-regexp v8 breaking changes

This commit is contained in:
Danny 2026-01-16 14:43:37 -06:00
parent 10ed6a395a
commit 2e7db6a952
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY server.js .
RUN npm install express
RUN npm install express@4
EXPOSE 80
CMD ["node", "server.js"]

View File

@ -54,7 +54,7 @@ app.post('/api/chat/stream', async (req, res) => {
});
// SPA fallback - all other routes serve index.html
app.get('/*', (req, res) => {
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});