CloudflareAdapterOptions
Options of the cloudflare adapter.
Options of the cloudflare adapter.
Import#
ts
import type { CloudflareAdapterOptions } from "@shadow-js/dusk/cloudflare";
Signature#
ts
interface CloudflareAdapterOptions {
/** Output folder relative to the project. Default `dist/cloudflare`. */
readonly outDir?: string;
/** The Worker name: lower case letters, digits and hyphens, at most 63 characters. Default `dusk-app`. */
readonly name?: string;
/** The `compatibility_date` of the Worker, `YYYY-MM-DD`. Default `2025-09-01`. */
readonly compatibilityDate?: string;
/** Extra `compatibility_flags` besides `nodejs_compat`. */
readonly compatibilityFlags?: readonly string[];
}
Members#
| Name | Type | Description |
|---|---|---|
outDir? |
readonly outDir?: string |
Output folder relative to the project. Default dist/cloudflare. |
name? |
readonly name?: string |
The Worker name: lower case letters, digits and hyphens, at most 63 characters. Default dusk-app. |
compatibilityDate? |
readonly compatibilityDate?: string |
The compatibility_date of the Worker, YYYY-MM-DD. Default 2025-09-01. |
compatibilityFlags? |
readonly compatibilityFlags?: readonly string[] |
Extra compatibility_flags besides nodejs_compat. |