react-router-tutorial icon indicating copy to clipboard operation
react-router-tutorial copied to clipboard

Ensure Express doesn't serve index.html for /

Open rajaraodv opened this issue 8 years ago • 0 comments
trafficstars

change app.use(express.static(path.join(__dirname, 'public'))) to: app.use(express.static(path.join(__dirname, 'public'), {index: false}))

rajaraodv avatar Dec 12 '16 22:12 rajaraodv