Topic: React Build and Deploy
mark-steven-au pro premium asked 5 years ago
Expected behavior React project. npm start web page loads all fine, navigate through web site to page 2 and 3 all looking good.
NPM run build Copy folder contents of "build" to AWS bucket. URL to bucket via browser web home page loads all fine. click on link to page 2 then page 3 etc Actual behavior click on page 2 nothing there page 3 nothing there only home page. Resources (screenshots, code snippets etc.) Wondering what I missed in the build to be missing pages? Are the Urls or something missing or need to be absolute to work? Any clues?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: Yes
- Technology: MDB React
- MDB Version: 4.27.0
- Device: MAC
- Browser: chrome
- OS: IOS
- Provided sample code: No
- Provided link: No
mark-steven-au pro premium commented 5 years ago
worked it out for any out there that hit this issue. It is an AWS thing. Make sure you have S3 bucket index.html marked which you would need for it to show up anyway. But also add index.html to the error.html window as well. Don't point that to an error.html document which is what AWS documentation suggest.
Piotr Glejzer staff commented 5 years ago
So did you resolve your problem? We don't provide any connection with AWS. Is that a problem?
mark-steven-au pro premium commented 5 years ago
yes all good now - Was AWS end