Cloudflare-Native Setup Path
The deployment path is intentionally short: install Node.js and Wrangler, create D1, migrate, run locally, then deploy to Cloudflare.
Requirements
- Node.js
- Wrangler
- Cloudflare account
Setup
npm install
wrangler d1 create iai-db
Migration
wrangler d1 execute iai-db --file=./database/schema.sql
Docs repo deployment
For this repository, publish the static output directory apps/docs/public on Cloudflare Pages. No external build pipeline is required.
Run Local
wrangler dev
For the docs project specifically, use the repository script:
npm run dev
Deploy
wrangler deploy
For the static docs repo:
npm run deploy
Recommended Checks
- All pages exist and render on mobile.
- Links pass local validation with
npm run check:links. - Headers enforce strict CSP and disable third-party script execution.
- Cross-system links resolve to
home,app,flow,mail, andapisurfaces.