Hosting static HTMLs
While I'm on vacation and Mac Mini 2024 (my home server) is turned off, I wanted to host HackerNews legible frontend (html file) on the Internet with minimum setup as possible.
Obvious choices like Cloudflare Workers, Github Pages and all their variants were ruled out as they require accounts, backed by big corps while I wanted something indy.
- https://hacker-news.tiiny.site – pink bar at the bottom
- https://news-aggregated.neocities.org – some CORS restrictions, so data not loading
- https://h-news.surge.sh – SELECTED
- https://surge.sh/ – hosting for frontend projects
- occupied:
- https://hacker-news.surge.sh
- https://hackernews.surge.sh
- https://hn.surge.sh
- https://hnl.surge.sh – something about Breaking Bad
- https://hnews.surge.sh
Playing with Surge, made me realise it's a nice way to host static html artifacts created with AI, so here it is: https://hotter.surge.sh.
Operations
(let ((default-directory "~/Developer/src/github.com/velppa/hotter.surge.sh"))
(async-shell-command
;; "surge --help"
;; "surge files hotter.surge.sh"
;; "surge . hotter.surge.sh" ;; deploy
"make deploy"
"*hotter.surge.sh*"))
(setq surge-server (ws-file-server :dir "~/Developer/src/github.com/velppa/hotter.surge.sh" :port 9004))
(ws-stop surge-server)