This 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.
Ask HN: Cheapest/easiest way to host a static site?
1–10 of 507 posts
Re: Ask HN: Cheapest/easiest way to host a static site?
#2Netlify is really easy. Just drag and drop your static site's folder.
Re: Ask HN: Cheapest/easiest way to host a static site?
#3If you mean pure html/css, then the least friction would be NeoCities [1] It is free and not owned by Microsoft or Google.
[1] - https://neocities.org/
Re: Ask HN: Cheapest/easiest way to host a static site?
#4GitHub pages! It’s free so I don’t think it can get any cheaper.
Re: Ask HN: Cheapest/easiest way to host a static site?
#5Speaking of AWS, I recently deployed a gatsby web site with AWS Amplify. It links to your git repo and will automatically deploy when you merge to master/main. You can also deploy branches you want to test out. As this was my second website I have ever deployed, I was amazed at how easy it was to setup.
Re: Ask HN: Cheapest/easiest way to host a static site?
#6The most popular currently is probably https://www.netlify.com/ - 100% free.
If AWS + CloudFront is too difficult and you don't mind spending a few bucks, it's pretty easy to get started with LightSail - about $3.50 a month.
Re: Ask HN: Cheapest/easiest way to host a static site?
#7If you mean pure html/css, then the least friction would be NeoCities [1] It is free and not owned by Microsoft or Google. [1] - https://neocities.org/
Seconded. Their CLI has all you need, even git hooks.
Personally I just use `neocities push .`
Re: Ask HN: Cheapest/easiest way to host a static site?
#8Firebase hosting work well.
Re: Ask HN: Cheapest/easiest way to host a static site?
#9Google App Engine has a very generous free quota. The setup isn't as easy as good old FTP, because you need to define your static files in a configuration file. Once the config is written the deployment is a single command though.
Re: Ask HN: Cheapest/easiest way to host a static site?
#10I continue to be a big fan of surge [1]. A number of toy projects/demos of mine have been developed using create-react-app, rendered to static files, then deployed via surge.
[1] = https://surge.sh/