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

Use absolute server path for index.js. #33

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Use absolute server path for index.js. #33

merged 3 commits into from
Feb 12, 2024

Conversation

tmpfs
Copy link
Contributor

@tmpfs tmpfs commented Feb 12, 2024

So that the production build does not use relative paths for assets.

As the cloudfront CDN redirects all routes to /index.html using a relative path will yield a 404 when not at the root of the web server.

So that the production build does not use relative paths for assets.

As the cloudfront CDN redirects all routes to /index.html using a
relative path will yield a 404 when not at the route of the web server.

Eg: the /approve route is without this fix.
@tmpfs tmpfs merged commit 6426bda into main Feb 12, 2024
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