Procedural knowledge for building full-stack applications on Cloudflare using Hono, Workers AI (Vercel AI SDK 6), Workflows, and D1 with Drizzle ORM.
This skill provides verified implementation patterns for composing Cloudflare primitives into robust full-stack applications.
To ensure seamless migrations and type safety:
migrations_dir in wrangler.jsonc to match Drizzle's output folder (default: "drizzle").nodejs_compat compatibility flag in wrangler.jsonc.src/db/schema.ts).To avoid LLM hallucinations and ensure valid JSON:
generateText with Output.object instead of deprecated generateObject.createWorkersAI from workers-ai-provider.To build resilient multi-step pipelines:
WorkflowEntrypoint<CloudflareBindings, PayloadType>.step.do() for automatic retries and state persistence.wrangler.jsonc with binding, name, and class_name.public/index.html does not conflict with Worker routes defined in Hono./, ensure the static asset directory (e.g., ./public) does not contain an index.html unless it is the intended entry point.