fix: add /work/ redirect, remove nginx dependency

This commit is contained in:
2026-03-10 06:34:42 +08:00
parent 5981d24104
commit 1f4dcdfd38
+3
View File
@@ -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
app.use(express.static(path.join(__dirname, 'html')));