diff options
| -rw-r--r-- | server/index.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/server/index.ts b/server/index.ts index f94eb74..40f788e 100644 --- a/server/index.ts +++ b/server/index.ts @@ -46,11 +46,5 @@ app.get('/info', (_req, res) => { res.json({ startDate: startDate.toISOString() }); }); -if (process.env.NODE_ENV === 'production') { - app.use(express.static(path.join(__dirname, '../build'))); - app.get('*', (_req, res) => { - res.sendFile(path.join(__dirname, '../build', 'index.html')); - }); -} app.listen(SERVER_PORT, () => console.log(`Server running on :${SERVER_PORT}`)); |
