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

fix: Nginx 404 with Docker on paths #632

Merged
merged 1 commit into from
Jul 11, 2024
Merged

fix: Nginx 404 with Docker on paths #632

merged 1 commit into from
Jul 11, 2024

Conversation

michael1011
Copy link
Member

@michael1011 michael1011 commented Jul 11, 2024

try_files $uri /index.html =404; tells Nginx to always serve the index.html instead of the default 404 page, when a path that is not index.html is accessed.
This is needed so that our router in the web app works on refreshes.

Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview Jul 11, 2024 2:02pm
webapp-mainnet ✅ Ready (Inspect) Visit Preview Jul 11, 2024 2:02pm

@michael1011 michael1011 merged commit bd6ac77 into main Jul 11, 2024
4 checks passed
@michael1011 michael1011 deleted the fix-docker-nginx branch July 11, 2024 14:04
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