paint-brush
Handling Client Side Routing When Hosting Your React.js Project on AWS S3by@james-c-rodgers
1,598 reads
1,598 reads

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

by James C Rodgers9mMay 22nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@james-c-rodgers

Engineer, Curious Person.

Learn More
LEARN MORE ABOUT @JAMES-C-RODGERS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

James C Rodgers HackerNoon profile picture
James C Rodgers@james-c-rodgers
Engineer, Curious Person.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite