Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Ensure Express doesn't serve index.html for / #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rajaraodv
Copy link

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

change 
app.use(express.static(path.join(__dirname, 'public')))
to:
app.use(express.static(path.join(__dirname, 'public'), {index: false}))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant