Provision Database
wrangler d1 create [db-name]
Generate Local Database
pnpm run db:generate
Run Local Migrations
pnpm run db:migrate
Gather Environment Variables https://www.better-auth.com/docs/installation create google auth app using google cloud and save client id and client secret to .env file
Save Environment Variables to Cloudflare
wrangler secret put [var-name] and provide value from .env file
Run Cloudflare Migrations
wrangler d1 migrations apply [db-name] --remote
Deploy to Cloudflare
wrangler deploy
OR
pnpm run dev