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

Written by james-c-rodgers | Published 2020/05/22
Tech Story Tags: aws | s3 | react | hacking | programming | hosting | aws-s3 | amazon

TLDR 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.via the TL;DR App

no story

Written by james-c-rodgers | Engineer, Curious Person.
Published by HackerNoon on 2020/05/22