Merge pull request 'fix(node-player): use Express 5 catch-all route syntax' (#10) from feature/JWT-OIDC-SSO into DEV
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -124,7 +124,7 @@ app.get('/auth/logout', (req, res) => {
|
||||
// Production: serve Vite-built client as static files
|
||||
const clientDist = path.resolve(import.meta.dirname, '../../client/dist');
|
||||
app.use(express.static(clientDist));
|
||||
app.get('*', (_req, res) => {
|
||||
app.get('/{*path}', (_req, res) => {
|
||||
res.sendFile(path.join(clientDist, 'index.html'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user