I have a react app that is embedded in a standard web page layout folder, I am using browser router to do the routing in the app, this works fine on local host, the react app is a webmodule monorepository setup and each project in the repository has its own index file and can run independently from each other, I have a host project that when run uses all the other exposed modules from the other projects, all works well on local. When I build it and put it onto AWS is where the issue starts, I have an S3 cloud front setup, so I have set the S3 bucket to be a single page app(even though the main app that the react app is in is a file served system) I have created a cloud front node.js script to detect the responses and requests and based on them, I set a 404 or 404 (actalually anything between 400 and 500) if I recall, if it is under the folder with the react branch it reverts to the index.html in that folder otherwise it goes to the root folder of the main site, we also catch if any of th files don't end in index.html and redirect to index if they don't, the problem is sometimes ot uses the individual projects index page and other times it uses the main root(of the reqct project) index page, apologies I am writing this on my phone on long train journey, any help would be appreciated, thanks in advance
Routing issue with single page react app embeded in a paged site
13 Views Asked by Clas Antics At
0
There are 0 best solutions below
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in AMAZON-S3
- Mocking AmazonS3 listObjects function in scala
- S3 integration testing
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Golang lambda upload image into s3 static website
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Is there a way to upload a file in digital ocean object storage using php curl
- How to setup AWS credentials for next.js apps?
- S3 pre-signed url not working on whatsapp cloud Api
- How to set custom Origin Name in AWS CDK for CloudFront
- Property 'location' does not exist on type 'File'
- Resource handler returned message: "Unable to validate the following destination configurations
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to access variable to pass through url_for() as src in Flask App
- I cant figure out how to pull scripts from s3 to my aws workspace
Related Questions in AMAZON-CLOUDFRONT
- How to set custom Origin Name in AWS CDK for CloudFront
- Switch to Cloudfront CDN causing issues for small number of users
- How can I reconfigure CodeIgniter (v4) to serve with a new sub-directory path (via nginx)?
- Cross account origin change in lambda edge
- CloudFront Not Using SimpleCORS Policy
- Hosting multiple static sites programmatically
- Cant retrieve headers from network source type "Fetch/Redirect"
- Miss From Cloudfront: X-cache
- Custom Header from Network Request not being retrieved with fetch API
- Issues in connecting AWS Cloudfront to app hosted on AWS Elastic beanstalk
- JavaScript function not updating value after a while loop
- I am getting net::ERR_SSL_PROTOCOL_ERROR when my frontend that is running on AWS s3 bucket with cloudfront try to connect my backend on EC2 server
- Triggering lambda edge in Cloudfront origin response flow only for specific files
- Why does puppeteer timeout from lambda when calling a cloud front url?
- Use custom url with S3 uploads plugin for wordpress to AWS cloudfront
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?