Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amaciver
Copy link

As written currently, Express 'magic' is overriding sendFile and serving the index.html file using the static middleware. If you want the sendFile syntax to be accurate (if the name of the file were different, for example) it would need the full correct path, i.e. "public/index.html

As written currently, Express 'magic' is overriding sendFile and serving the index.html file using the static middleware. If you want the sendFile syntax to be accurate (if the name of the file were different, for example) it would need the full correct path, i.e. "public/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant