-
Notifications
You must be signed in to change notification settings - Fork 133
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
Support for Angular applications #174
Comments
Hello, thank you for raising this issue. I think it's one we should think about supporting or at least give some guidance on. I think adding a feature to allow a fallback to a specific file either locally or in s3 would require some nontrivial refactors since we're currently using the 404 response code for something else. Can you share a little about your desired setup to help me understand how this project could fit in? |
single SPA app support behavior: |
Thanks for sharing those details - it's helpful to understand expectations around pathing From this I assume that the Finally, (and this is genuinely not a criticism, just me trying to understand) is there a reason that you're considering this project over some common AWS-based solutions like fronting an s3 bucket with cloudfront? Here's an example of that kind of setup: https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-cloudfront.html |
I found a workaround that sets the
|
@lalewis7 Thank you for sharing your response! I hope that this will help others. I intend to make some changes in the future to make things easier for single page application folks but your solution can be helpful until that happens. I outlined an easy way to add things to |
Hi @lalewis7 thanks for posting this. This has helped us too for React apps using React Router. @4141done Do you think we can revisit SPAs and a process for natively integrating it in the s3 gateway? |
Describe the solution you'd like
Angular, and many other front end framework need to load the /index.html file when the static content is not found. This allows to support the concept of deep linking.
This is explained here
I found that the suggested approach has the following problem:
Either way, the nginx configuration of this project was so convoluted that i couldn't find a way to figure out where to put the statement.
It would be great if logic could be added to this project to directly support this sue case.
The text was updated successfully, but these errors were encountered: