Ask HN: Cheapest/easiest way to host a static site?
451 pointsThis is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.
Comments (487) 172 threads
Earlier commentsIf you want a more CI type service (i.e. you push your code and it builds on the cloud, rather than you build it locally - or it requires no build), I’ve found Netlify pretty good.
Was using Vercel for a Next.js project recently, quite nice experience but it randomly started timing out about 50% of builds and their support were unwilling to help without a minimal repro - fair enough, but I was on a deadline so switched to Netlify, which built the site with no issues.
Will try out Cloudflare Pages next based on the positive comments in here!
The benefit is that it's just a linux distro of your choice, so you can use whatever you are familiar with, and there is scope to add non-static service if needs be.
You also get a few free static sites as well https://www.digitalocean.com/products/app-platform/
- GitHub Pages and Netlify are the two obvious and most popular choices, but there's also cloudflare, gitlab pages, hell even Keybase has static website hosting: https://book.keybase.io/sites
All comments shown.
Couldn't load more comments. Check your connection and try again.