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/404 on all react-router paths #249

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

Conversation

soofstad
Copy link
Collaborator

@soofstad soofstad commented Sep 4, 2024

Fixes a bug where routes defined only in the SPA (react-router etc.) returns 404.

nginx must return index.html for all files not found (assets, chunks, etc.)

@soofstad soofstad self-assigned this Sep 4, 2024
Copy link
Contributor

@mariuswinger mariuswinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also fix the frontend tests?

@soofstad
Copy link
Collaborator Author

soofstad commented Sep 5, 2024

Does this also fix the frontend tests?

Which tests are failing?

@mariuswinger
Copy link
Contributor

Does this also fix the frontend tests?

Which tests are failing?

image

@soofstad
Copy link
Collaborator Author

soofstad commented Sep 5, 2024

hmm, hard to make out the actual error. But I see a "ERR_NETWORK" in there, so probably not related. Also, this change only affect build static js serving from prod version of NGINX.

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