- I love Elm and CloudFlare
- I avoid JS as much as I can. JS to me is always a painful experience
Target: Quick spike of loved combo for next project's frontend (public static (elm-pages?) + admin panel as Elm SPA).
Result: 90% of time I was fighting endless node/JS/billion npm deps's issues, but non-JS part was a breeze
- vite + elm config
- deploy no-op Elm app to CloudFlare Pages
- github actions? deploy
- vite3 integration (another way?)
- this HTTP redirection config is awful, try CF Access
- create subdomain for pages using
wrangler.toml
(CF Workers do support this) - looks like optimized compiler needs document Elm mode (low priority)
wrangler pages deploy
- some info
- disabling access to CF's origin host
- simple redirection involves Bulk Redirect lists o_O (5 on free tier):
- add
doggo-elm.pages.dev
and select "Subdomains"
- add
- simple redirection involves Bulk Redirect lists o_O (5 on free tier):
- wrangler's pages CLI
make deps dev
graceful-fs
npm - is a portback of something I don't want to know about.