Deploying front-end websites to S3 with CloudFront
1–10 of 33 posts
Re: Deploying front-end websites to S3 with CloudFront
#2https://www.josephecombs.com/2018/03/05/how-to-make-an-AWS-S...
Re: Deploying front-end websites to S3 with CloudFront
#3If you don't want to run a build of your static site generator on your computer and upload the result to GitHub every time you make a change, you can just use Jekyll and GitHub will build it for you. I think GitLab supports other static site generators as well. This technique is how https://www.snazz.xyz works.
Re: Deploying front-end websites to S3 with CloudFront
#4If it's just a personal website, you might find it easier to use GitHub Pages (or GitLab's equivalent) and Cloudflare. Both are free for any reasonable personal website usage. If you don't want to run a build of your static site generator on your computer and upload the result to GitHub every time you make a change, you can just use Jekyll and GitHub will build it for you. I think GitLab supports other static site ge…
Re: Deploying front-end websites to S3 with CloudFront
#5Re: Deploying front-end websites to S3 with CloudFront
#6Configuring CORS is probably the biggest pain about this approach and is necessary if you want to send data to and from an API. This guide should probably mention it or link another guide.
Re: Deploying front-end websites to S3 with CloudFront
#7Configuring CORS is probably the biggest pain about this approach and is necessary if you want to send data to and from an API. This guide should probably mention it or link another guide.
CORS is only needed for the API, not the website, and only if you don't control the API or don't make it so the API can be served (from the client's perspective) from the same origin, perhaps because it's fronted by the same Cloudfront distribution.
Re: Deploying front-end websites to S3 with CloudFront
#8If it's just a personal website, you might find it easier to use GitHub Pages (or GitLab's equivalent) and Cloudflare. Both are free for any reasonable personal website usage. If you don't want to run a build of your static site generator on your computer and upload the result to GitHub every time you make a change, you can just use Jekyll and GitHub will build it for you. I think GitLab supports other static site ge…
Re: Deploying front-end websites to S3 with CloudFront
#9Configuring CORS is probably the biggest pain about this approach and is necessary if you want to send data to and from an API. This guide should probably mention it or link another guide.
Re: Deploying front-end websites to S3 with CloudFront
#10Configuring CORS is probably the biggest pain about this approach and is necessary if you want to send data to and from an API. This guide should probably mention it or link another guide.
Just change the Access-Control-Allow-Origin header. Am I missing something?