ReactJS deployment on S3 bucket


I have tried to deploy a web application with the backend in Node.js and the frontend in React. The backend is deployed on an EC2 instance, and the frontend (React app) is hosted on S3. However, I am facing an issue where the routes in the React app are not working. The application successfully loads the index.html page, but after logging in, it fails to redirect to the dashboard. Does S3 only support React SPA?

asked 3 months ago226 views
1 Answer


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.

profile picture
answered 3 months ago
profile pictureAWS
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions