Handling Client Side Routing When Hosting Your React.js Project on AWS S3by@james-c-rodgers
845 reads

Handling Client Side Routing When Hosting Your React.js Project on AWS S3

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

React-router is “client-sided” navigation when you send a refresh command, the browser is stepping in and it looks for the index file at the end of the address path but there isn’t one. Conditional redirects allow you to react to error conditions so, when refresh is clicked and the page fails to load it would return a 404 error. The big insight here is that you can do some “server side” routing in AWS S3 using Redirection rules and conditional redirects.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Handling Client Side Routing When Hosting Your React.js Project on AWS S3
James C Rodgers HackerNoon profile picture

@james-c-rodgers

James C Rodgers

Learn More
LEARN MORE ABOUT @JAMES-C-RODGERS'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa