From 7214238f3307037e07096ef0153fa7955c539cf0 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:33:18 -0500 Subject: [PATCH] Fix: Always serve React build regardless of NODE_ENV --- server/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/server/index.js b/server/index.js index a56ddce..691d1c4 100644 --- a/server/index.js +++ b/server/index.js @@ -364,13 +364,11 @@ app.post('/api/test-webhook', async (req, res) => { } }); -// Serve React app in production -if (process.env.NODE_ENV === 'production') { - app.use(express.static(path.join(__dirname, '../client/build'))); - app.get('*', (req, res) => { - res.sendFile(path.join(__dirname, '../client/build/index.html')); - }); -} +// Serve React app +app.use(express.static(path.join(__dirname, '../client/build'))); +app.get('*', (req, res) => { + res.sendFile(path.join(__dirname, '../client/build/index.html')); +}); // Start server app.listen(PORT, () => {