Fix: Stable Prisma 6 setup, database seeding, and routing improvements

This commit is contained in:
Quintine committed 2026-05-20 13:38:01 +10:00
1 parent eed1ef4266
commit 108184ba68
8 files changed
+680 -868

No files matched your search

+1 -2
View File
@@ -159,8 +159,7 @@ app.post('/api/reset', async (req, res) => {
const frontendPath = path.join(__dirname, '../../frontend/dist');
app.use(express.static(frontendPath));
app.get('*', (req, res) => {
if (req.path.startsWith('/api')) return;
app.get(/^\/(?!api).*/, (req, res) => {
res.sendFile(path.join(frontendPath, 'index.html'));
});