Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixing express static's weird behaviour when trying to serve index.html #4

Merged
merged 5 commits into from
Mar 24, 2024

Conversation

sarthakpranesh
Copy link
Contributor

@sarthakpranesh sarthakpranesh commented Mar 24, 2024

In some scenario, when we try to access static site using domain name, express static was serving the text/html base index file instead of js bundles forcing NS_ERROR_CONTENT_CORRUPT error on browsers. It would work properly if accessing it through 127.0.0.1. Serving the base index file in a separate route fixed this behaviour.

Relates to mydraft-cc/ui#234

@SebastianStehle SebastianStehle merged commit e036536 into mydraft-cc:main Mar 24, 2024
1 check passed
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.

2 participants