This demo app showcases how to deploy a static Svelte app to Cloudflare Pages while keeping the PocketBase backend on Fly.io.
Frontend: https://cf-fly-pocketbase-demo.pages.dev/
Backend: https://cf-fly-pocketbase-demo.fly.dev/_/
To start script, run:
# 1) Run the dev pocketbase backend.
# If it's your first run, follow the OTP link in the console to create the first superadmin.
./scripts/run-dev-env-docker.sh support
# 2) run the app:
yarn run dev
Deployments to fly.io and cloudflare are done automatically via GHA, on push to master branch.
To create new CF page:
yarn run wrangler pages project create cf-fly-pocketbase-demo
To create new Fly app:
./scripts/run-dev-env-docker.sh shell fly launch