WorkersSiteStaticContentBinding
Overview
See
Usage
- Node
- Deno
import { WorkersSiteStaticContentBinding } from 'keywork/middleware/classes'
import { WorkersSiteStaticContentBinding } from 'https://deno.land/x/keywork/middleware/classes'
Properties
__STATIC_CONTENT
__STATIC_CONTENT: `KVNamespace<string>`
Defined in
middleware/classes/WorkerSitesAssetRouter.ts:60
An environment binding available within Worker Sites. This is often used with the
@cloudflare/kv-asset-handler
package.This binding only exists in Worker Sites. Cloudflare Pages instead uses
env.ASSETS
When using ESBuild, ensure that the virtual module
__STATIC_CONTENT_MANIFEST
is marked as external:For usage with TypeScript, you'll need to define a module type as well: