diff --git a/server.js b/server.js index 2d90cfd..427e31e 100644 --- a/server.js +++ b/server.js @@ -3,10 +3,8 @@ const path = require('path'); const app = express(); const PORT = process.env.PORT || 3888; -// Serve static files from the React build app.use(express.static(path.join(__dirname, 'build'))); -// Serve index.html for all routes to support client-side routing app.get('*', (req, res) => { res.sendFile(path.join(__dirname, 'build', 'index.html')); });