fixed catch-all routing

This commit is contained in:
MattLeo 2025-12-09 09:31:07 -06:00
parent b36feabc98
commit faf01f9831
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
/client/node_modules/
keys.txt
.env
/fd-client/DS_Store
/fd-client/fdk/

View File

@ -668,7 +668,7 @@ initDb().then(() => {
app.use(express.static(path.join(__dirname, 'frontend/dist')));
app.use('/media', express.static(path.join(__dirname, 'media')));
app.get('*', (req, res) => {
app.get('/*', (req, res) => {
res.sendFile(path.join(__dirname, 'frontend/dist', 'index.html'));
});