Fix: Stable Prisma 6 setup, database seeding, and routing improvements
This commit is contained in:
1 parent
eed1ef4266
commit
108184ba68
8 files changed
+680
-868
No files matched your search
@@ -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'));
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user