Configuration

Optional cf-ready.config.json in your project root. Override path with --config. All fields are optional — CF Ready auto-detects framework and target when omitted.

Full example (Next.js)

{
  "projectName": "Next.js Cloudflare App",
  "productionUrl": "https://example.com",
  "framework": "nextjs",
  "target": "cloudflare-workers",
  "outputDir": ".",
  "migration": {
    "preferredPath": "vinext",
    "fallbackPath": "opennext",
    "allowAutoMigration": false
  },
  "aiPolicy": "allow-assistive-agents",
  "seo": {
    "defaultTitle": "Next.js Cloudflare App",
    "defaultDescription": "A production-ready Next.js app for Cloudflare.",
    "defaultImage": "/og.png",
    "organizationName": "OrangeCloud"
  },
  "criticalRoutes": ["/", "/login", "/dashboard", "/api/health"],
  "security": {
    "blockOnSecrets": true,
    "blockOnCriticalDependencies": true
  },
  "ai": {
    "workerUrl": "https://your-worker.workers.dev",
    "model": "openai/gpt-4o-mini",
    "gatewayId": "default"
  }
}

Repository copies: examples/nextjs, examples/vite.

Field reference

FieldTypeDescription
projectNamestringDisplay name in reports and generated assets
productionUrlURLCanonical production URL for sitemap, llms.txt, smoke tests
frameworkenumnextjs, vite, react-spa, astro, remix, express, nodejs, static, …
targetenumcloudflare-workers, cloudflare-pages, vercel, netlify, …
outputDirstringWhere reports are written (default: .)
aiPolicyenumallow-assistive-agents | restrict | block — affects robots.txt drafts
criticalRoutesstring[]Paths for smoke-test and sitemap generation (default: ["/"])

migration

FieldDescription
preferredPathe.g. vinext, cloudflare-pages
fallbackPathe.g. opennext when vinext is risky
allowAutoMigrationAlways false in MVP — CF Ready never auto-migrates

seo

Defaults used by fix --seo and SEO finding recommendations.

FieldDescription
defaultTitleSuggested page title
defaultDescriptionMeta description draft
defaultImageOG image path (e.g. /og.png)
organizationNameJSON-LD Organization name

security

FieldDefaultDescription
blockOnSecretstrueFail production-ready on high/blocker security findings
blockOnCriticalDependenciestrueFail on critical npm audit issues

ai

FieldDescription
workerUrlCF Ready worker for ai-optimize (e.g. deployed Web Agent worker)
modelWorkers AI model id (default: openai/gpt-4o-mini)
apiTokenOptional Bearer token for worker auth
gatewayIdAI Gateway id (default: default)
Config discovery. CF Ready looks for cf-ready.config.json in --cwd. Missing config is valid. Explicit --config to a missing file throws an error.