UNPKG

nitro-cloudflare-dev

Version:

POC module to enable access to the Cloudflare runtime bindings in development server of Nitro and Nuxt

29 lines (25 loc) 691 B
import { PlatformProxy } from 'wrangler'; declare module "h3" { interface H3EventContext { cf: PlatformProxy["cf"]; cloudflare: { request: Request & { cf: PlatformProxy["cf"]; }; env: PlatformProxy["env"]; context: PlatformProxy["ctx"]; }; } } declare module "nitropack" { interface NitroOptions { cloudflareDev?: { configPath?: string; environment?: string; persistDir?: string; silent?: boolean; }; } } declare function nitroCloudflareDev(arg1: unknown, arg2: unknown): void; export { nitroCloudflareDev as default };