1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
It should be possible to run ReactJS on S3.
The following document describes how to run the sample, so I think it will be helpful.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-cloudfront.html
Relevant content
- Accepted Answerasked 16 days ago
- asked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
You are right, it's deployed and I can access it but the routes are not working means the pages are not redirecting, I can access only the index.html page rest of the routes are showing 404. I want to know if there is any special setting or configuration required to achieve this or if it will only support single-page applications (SPA) as described in the article.
This blog may be helpful. https://via.studio/journal/hosting-a-reactjs-app-with-routing-on-aws-s3
By the way, do you use something like CloudFront? In that case, please also configure the CloudFront default root object. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html