#Cloudflare
9 entries
Prompt to Add Cloudflare R2 File Upload
Copy-paste AI prompt to add Cloudflare R2 presigned upload URLs to a Next.js App Router project with server-side validation.
Prompt to Build a Cloudflare Worker API Proxy
Copy-paste AI prompt to build a Cloudflare Worker that proxies and rate-limits external API calls, adds auth headers, and caches responses.
Prompt to Create a GitHub Actions Deploy Workflow
AI agent prompt to generate a production GitHub Actions CI/CD workflow for a Next.js app with type-check, test, build, and deploy steps.
Codex Rules for Cloudflare Workers
Codex rules for Cloudflare Workers projects that prevent Node.js API usage, enforce binding patterns, and keep agents within the Workers runtime constraints.
Prompt-to-PR: Add Cloudflare R2 File Upload
End-to-end SOP for wiring presigned R2 uploads into a Next.js or Cloudflare Workers app — bucket binding, presigned URLs, and client upload flow.
Checklist for Reviewing AI-Generated Cloudflare Workers
A human review checklist for Cloudflare Workers code written by AI coding agents — runtime limits, KV, D1, bindings, and security at the edge.
How to Fix AI Breaking the Cloudflare Workers Runtime
AI agents import Node.js built-ins like fs, crypto, and path into Cloudflare Workers, causing runtime errors because the Workers runtime is not Node.js.
How to Fix AI Forgetting Environment Variable Validation
AI agents read process.env values directly without validation, causing silent undefined bugs and missing startup errors when env vars are absent.
Cloudflare Workers App — Context Pack
Copyable context pack for a Cloudflare Workers application with D1, KV, R2, and Hono so your AI agent understands the edge runtime constraints from the first prompt.