Configure options below — the preview updates in real time.
Top-level Worker identity and runtime settings.
The name of your Cloudflare Worker (alphanumeric and dashes).
The entrypoint file for your Worker (e.g. src/index.ts).
Date (YYYY-MM-DD) determining which Workers runtime version to use.
Runtime feature flags to enable specific capabilities.
Cloudflare Account ID for deployments.
Output directory of the build step for Cloudflare Pages only.
Custom build steps, module rules, minification, and TypeScript settings.
Custom command to run before deployment (e.g. npm run build).
Working directory for the build command.
Directory to watch for changes during development.
Base directory for unbundled/external modules.
Path to a custom TypeScript configuration file.
A map of global variable names to replacement values applied during bundling.
A map of module names to substitute when deploying your Worker.
Route patterns, custom domains, and Smart Placement configuration.
A single route pattern string to map requests to the Worker (e.g. example.com/*).
Multiple route pattern strings for the Worker.
Smart Placement automatically runs workloads in optimal global locations.
Target a specific cloud provider region (e.g. aws:us-east-1, gcp:europe-west1, azure:westeurope). Mutually exclusive with other placement hints.
A host:port to probe via TCP (layer 4) for single-homed services like databases. Mutually exclusive with other placement hints.
A hostname to probe via HTTP (layer 7) for single-homed API services. Mutually exclusive with other placement hints.
Scheduled triggers (crons) and observability configuration.
Cron expressions for scheduled Worker execution.
Request sampling rate for observability (0.0 to 1.0).
Static plaintext variables accessible in the Worker runtime.
Key-value environment variables available globally in the Worker script.
Bind Cloudflare KV key-value storage namespaces to the Worker.
Array of KV bindings as JSON. Each has binding (string) and id (string).
Bind serverless SQL databases to the Worker.
Array of D1 bindings as JSON. Each has binding, database_name, database_id, and optional preview_database_id and migrations_dir.
Bind S3-compatible R2 Object Storage buckets.
Array of R2 bindings as JSON. Each has binding and bucket_name.
Connect to other Workers via RPC or fetch-based service bindings.
Array of service bindings as JSON. Each has binding, service, and optional entrypoint.
Bind Durable Objects for coordinated, stateful compute.
Durable Object bindings as JSON. Object with bindings array, each containing name and class_name.
Message queue bindings for producing and consuming events.
Array of queue producer bindings as JSON. Each has binding and queue.
Array of queue consumer configs as JSON. Each has queue, max_batch_size, max_retries, etc.
Accelerate database queries via Hyperdrive connection pooling.
Array of Hyperdrive bindings as JSON. Each has binding and id.
Bind Vectorize indexes for embeddings and AI semantic search.
Array of Vectorize bindings as JSON. Each has binding and index_name.
Bind the Workers AI model catalog, Cloudflare Images API, and headless browser instances.
Binding name for Cloudflare Workers AI.
Binding name for the Cloudflare Images transform API.
Binding name for headless Browser Rendering.
Binding name exposing deployment version IDs at runtime.
Write custom analytics and metrics at the edge.
Array of analytics dataset bindings as JSON. Each has binding and dataset.
Bind mutual TLS client certificates.
Array of mTLS certificate bindings as JSON. Each has binding and certificate_id.
Configure outbound email sending via Email Routing.
Array of email routing bindings as JSON. Each has name, destination_address, and optional allowed_destination_addresses.
Durable Workflows with retry and sleep mechanisms.
Array of workflow bindings as JSON. Each has binding, name, class_name, and optional script_name.
Serve static frontend assets alongside the Worker without Cloudflare Pages.
Directory containing static assets to serve.
Optional binding name for programmatic access to static assets.
How to handle trailing slashes for HTML files.
How to handle 404 responses for static assets.
Settings for local development with wrangler dev.
IP address to bind the local dev server to. Defaults to localhost.
Port for the local development server. Defaults to 8787.
Protocol for the local dev server.
Protocol used for forwarding requests from the local dev server. Defaults to https.
Hostname for the local dev server.
Legacy Workers Sites configuration. Use Assets or Cloudflare Pages for new projects.
Directory of static assets for Workers Sites.
File patterns to include in the site upload.
File patterns to exclude from the site upload.
Route logs to other Workers configured to consume tail events.
Array of tail consumer bindings as JSON. Each has service and optional environment.
Dynamic dispatch routing for Workers for Platforms.
Array of dispatch namespace bindings as JSON. Each has binding and namespace.
Legacy bindings for embedding static WASM, text, and data files.
Key-value map of binding names to WASM file paths.
Key-value map of binding names to text file paths.
Key-value map of binding names to binary data file paths.
Configure per-invocation CPU and subrequest limits for the Worker.
Maximum CPU time allowed per invocation, in milliseconds. Max 300,000ms.
Apply class configuration changes to Durable Objects.
Array of migration steps as JSON. Each has tag, new_classes, renamed_classes, deleted_classes, etc.
1