Tech
Deploy a SonicJS CMS to Cloudflare Workers with GitHub Actions - Part 2
This post covers production bindings, secrets, migrate-before-deploy, and a GitHub Actions workflow that typechecks, migrates D1, deploys the Worker, and smoke-checks /health .
Prerequisites
A SonicJS project that already runs locally with wrangler dev
Cloudflare account + Wrangler logged in once ( npx wrangler login )
D1 database and R2 bucket created (or create them now)
npx wrangler d1 create my-cms-db
npx wrangler r2 bucket create my-cms-media
Pas...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to