name: nitro-cloudflare-dev-skilld description: 'ALWAYS use when writing code importing "nitro-cloudflare-dev". Consult for debugging, best practices, or modifying nitro-cloudflare-dev, nitro cloudflare dev.' metadata: version: 0.2.2 generated_by: Anthropic · Haiku 4.5 generated_at: 2026-05-16
pi0/nitro-cloudflare-dev nitro-cloudflare-dev@0.2.2
Tags: latest: 0.2.2
References: package.json • README • Releases
Search
Use skilld search "query" -p nitro-cloudflare-dev instead of grepping .skilld/ directories. Run skilld search --guide -p nitro-cloudflare-dev for full syntax, filters, and operators.
API Changes
This section documents version-specific API changes in nitro-cloudflare-dev v0.2.2 and migration notes from earlier versions.
- BREAKING:
shamefullyPatchR2Bucketsoption removed in v0.2.0 — R2 bucket patching is no longer available as a configuration option, use native Cloudflare R2 APIs instead source
Also changed: wrangler.json and wrangler.jsonc support added v0.2.2 · environment config added v0.1.5 · configPath and silent options added v0.1.2
Best Practices
Register the module as
"nitro-cloudflare-dev"in Nuxt'smodulesarray or callnitroCloudflareDevas a Nitro module — the module detects the context (Nuxt vs direct Nitro) automatically and handles lifecycle hooks appropriately sourceOmit
configPathto enable automatic discovery ofwrangler.json,wrangler.jsonc, orwrangler.tomlstarting from your project's source directory — no explicit configuration required for standard setups sourceOnly set the
environmentoption when using multiple Cloudflare environments (e.g., staging vs production) — conditional inclusion in proxy options prevents undefined environment configurations sourceAccess Cloudflare context via
event.context.cloudflarein handlers for consistent, well-typed access toenv,request, andctx— this approach maintains parity with production Cloudflare Workers code sourceUse
event.context.cfdirectly when you only need geolocation and security metadata — it mirrors the native Workers API for minimal overhead sourceCall
event.context.waitUntil()for background operations (migrations, cleanup) during request handling — bindings are automatically propagated to both the context and underlying Node.js request object sourceRely on automatic
.gitignoreupdates — the module adds.wrangler/state/v3to.gitignoreon first run, preventing accidental commits of local state sourceSet
silent: trueincloudflareDevconfig for CI/CD environments to suppress the initialization banner and reduce log noise sourceConfigure
persistDironly when using a non-standard layout — the default.wrangler/state/v3is compatible with most projects and kept out of version control sourceInstall
wrangleras a dev dependency explicitly — the module provides a helpful error message at runtime ifwrangleris missing, but will not function sourceExpect the plugin to gracefully downgrade to stub implementations if
getPlatformProxyfails — stub proxies prevent runtime crashes and allow basic development without Cloudflare bindings sourceUse
wrangler.jsonorwrangler.jsonc(introduced in v0.2.2) for tooling compatibility and comments support —wrangler.tomlremains supported but JSON formats integrate better with IDEs sourcePass config through
nitro.cloudflareDev(Nitro) ornitro.cloudflareDevunder Nuxt'snitroblock — direct modification ofruntimeConfig.wrangleris handled internally and should not be done manually source