Small self-contained project to demonstrate using Cloudflare Pages and Functions with Scala.js.
See my blog post about this topic: https://blog.indoorvivants.com/2022-02-14-cloudflare-functions-with-scalajs
- Live version of the app is deployed here: https://cloudflare-scalajs-template.pages.dev
- Locally, you need to install Wrangler and run
wrangler pages dev . --kv=SQUARE
, and in a separate terminalsbt "~buildWorkers"
- You can see
./deploy.sh
script for the steps Cloudflare does to deploy this