fix: add /work/ redirect, remove nginx dependency
This commit is contained in:
@@ -174,6 +174,9 @@ app.delete('/api/oops/:id', async (req, res) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Redirect /work/ to first case study (matches old nginx behaviour)
|
||||||
|
app.get('/work/', (req, res) => res.redirect(301, '/work/charityright/'));
|
||||||
|
|
||||||
// Serve static files from html/ directory
|
// Serve static files from html/ directory
|
||||||
app.use(express.static(path.join(__dirname, 'html')));
|
app.use(express.static(path.join(__dirname, 'html')));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user