From 1f4dcdfd384c71a67a46d35717475f597c06aa7c Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 10 Mar 2026 06:34:42 +0800 Subject: [PATCH] fix: add /work/ redirect, remove nginx dependency --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 7ad0171..3d0024b 100644 --- a/server.js +++ b/server.js @@ -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')));