varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.46k stars 65 forks source link

Investigate supporting static site hosting #108

Closed bitspittle closed 2 years ago

bitspittle commented 2 years ago

Currently, the kobweb flow I'm using uses Cloud Run, where you set up a webserver running ktor that serves your site and handles API requests. It looks like this will cost ~$10 / month at a minimum.

But if all you're doing is serving static html / js, you could probably skip the kobweb server part and just host exported artifacts, which should be way way way cheaper.

bitspittle commented 2 years ago

This is now doable (and I'm already using it!) via kobweb export --layout static

See also: https://bitspittle-site.web.app/blog/2022/staticdeploy