News for hackers. Stuff that matters.

Ask HN: How would you host a static site in 2020?

Yesterday I submitted a post I'd written about moving from Google Kubernetes Engine to Netlify (see HN submission: https://news.ycombinator.com/item?id=21872910). In the comments, many people suggested alternatives they thought would've been better for my situation that I'd either never heard of or didn't realize were good options for my use case - Google's Cloud Run and App Engine, Firebase, AWS Lambda + S3 + Cloudfront CDN to name a few.

So I'm curious - if you were going to host your static site in 2020, how would you do it?

( 4 comments | on HN )
Re:Ask HN: How would you host a static site in 2020? by viraptor on Wednesday December 25, 2019 @11:11AM (#21879041)
If it's actually just static, S3 + cloudfront unless there's any reason to do anything more. It's a bit of "nobody's been fired for ..." and a bit of "cheap enough to not think about".
Re:Ask HN: How would you host a static site in 2020? by marcosnils on Sunday December 29, 2019 @07:17PM (#21909662)
I work for ZEIT (https://zeit.co/home) the creators of next js and the best place to host your static content. It'd be awesome if you give our platform a try and help you out to host your content the best way possible. You shouldn't have to run containers or anything complex nowadays just to host a single static website.
Re:Ask HN: How would you host a static site in 2020? by riaandewit on Wednesday December 25, 2019 @11:39AM (#21879188)
S3, cloudfront, route53 for the hosting. Your text editor of choice for generating. Git for version control :)
Re:Ask HN: How would you host a static site in 2020? by DamonHD on Wednesday December 25, 2019 @10:46AM (#21878919)
Rather depends how big and busy it is?

earth.org.uk is script/make generated, pregenerates Gzipped and other low-bandwidth versions of objects, and runs on plain old Apache on a Raspberry Pi. Response time is typically very good.