score:5
Accepted answer
i was able to use this so post to accomplish what i needed to do. we already were using a cloudfront distribution for our other environments and this was very easy to set up.
here's a summary of what we learned here:
- it is definitely possible to host multiple react apps in the same bucket
- you can put each app into a directory/prefix of your choosing
create a cloudfront distribution for each app pointing to your bucket with settings like the following
a. put feature1 in bucket directory/prefix
feature1/
b. create a distribution with origin path
/feature1
and default root objectindex.html
c. ride away clean
Source: stackoverflow.com
Related Query
- Hosting multiple React apps with one S3 bucket
- How does one debug NextJS React apps with WebStorm?
- React form with multiple buttons - how to choose one to handle onSubmit event?
- Serving multiple react apps with client-side routing in Express
- Multiple React apps in one shell
- How to create multiple react native apps with same functionality
- Problem hosting react app at sub route of website - multiple websites one IP address NGINX
- Multiple React Admin Lists with filters on one screen
- Can't redirect with a proxy to Node server when hosting a React app on AWS S3 bucket
- How to handle multiple inputs in an array with one function in react
- How to set active only one link with react router for multiple url state?
- Using multiple react apps in page with relevant stores
- React Hooks Form Handling: Update the state of an object with multiple string items and one array item
- React multiple checkbox with one check at a time
- How to combine multiple API requests in one function with fetch() in React
- Output multiple React apps from one Webpack config
- How to reset multiple counters with one button in React
- Serve multiple React apps from the same server with Nginx
- Multiple React Apps with NGINX
- How to create multiple swiper instance in a react component and control one with the swipe of another?
- Patch multiple id's with one request with React Query
- Updating state with multiple radio button groups in one component react
- Multiple Field with path '...' set 'initialValue'. Can not decide which one to pick, using react js
- Is there a way to build multiple apps from single one with replacing some assets and components?
- Use multiple forms in one project with React Hook Form
- How can you use a CSS grid with multiple items rendered by one React component?
- Can I build Android apps with react native?
- Retrieving value from <select> with multiple option in React
- Multiple params with React Router
- React Router v4 with multiple layouts
More Query from same tag
- What is the exact behaviour of useRef react hook? Does the object get recreated on each rerender?
- Why I get 30 fps in chrome dev tool performance panel, but JS and React both say it's 60?
- Bootstrap 5 dropdown stopped working after installing @popper/core
- How to change text in a <p> tag when hovering a button in ReactJs?
- React optional field validation
- How to render an array of strings using map in ReactJs?
- JS serving and REST API from machine with changing IP address
- How to get the X and Y coordinates of the mouse click in percentage using ReactJs
- ReactJS npm run build throws elifecycle & export errors (weird)
- Get value of material UI buttons
- RMWC Select Component won't display selected value
- Updating an ID tag on scroll React.js
- I need to set my Apollo Client Cache to its defaults
- link changes but page does not
- Material UI AppBar not using theme colours
- How to make a react bootstrap dropdown with panelgroups
- Upload with react generated pdf to google drive
- Send 2 arguments to react redux middleware instead of just one action
- LineBreak in Array which is in Object Reactjs
- Is there a way to conditionally import multiple react imports?
- React - cannot set value of input box
- Webpack how to build production code and how to use it
- destructuring assignment default value
- Asynchronous path update when a fetch is done in a test
- how use local scope with eval
- Infinite loop with nested object
- Why are my dimensions not updating on resize when using React Hooks
- Reutilizing components on React
- How to see real-time update in React?
- react - fetch from other file not working - without error