How to host a SPA on AWS with S3 and CloudFront
There are many guides online for how to host a single-page application (SPA) on AWS with S3 and CloudFront but none (that I found) covered this in a proper way. Many are out-dated, they left the S3 bucket as public, or didn’t identify how to properly handle errors when you get a 404 or if the…