For Nuxt you have to add type declarations ```ts import { CfProperties, Request, ExecutionCon

For Nuxt you have to add type declarations
import {
  CfProperties,
  Request,
  ExecutionContext,
  R2Bucket,
} from '@cloudflare/workers-types/experimental';

declare module 'h3' {
  interface H3EventContext {
    cf: CfProperties;
    cloudflare: {
      request: Request;
      env: {
        STORAGE_BUCKET: R2Bucket;
      };
      context: ExecutionContext;
    };
  }
}

Source: https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/#add-bindings-to-typescript-projects
Cloudflare Docs
Web framework making Vue.js-based development simple and powerful.
Was this page helpful?