---
title: WranglerEnvRecordSchema
updated_at: '2026-11-25T15:26:28+01:00'
created_at: '2026-03-07T03:07:52+01:00'
symbol:
  kind: variable
  name: WranglerEnvRecordSchema
  signatures:
    - >-
      const WranglerEnvRecordSchema: Schema.Record$<typeof Schema.String,
      Schema.TypeLiteral<{ name: Schema.optional<typeof Schema.String>; main:
      Schema.optional<typeof Schema.String>; compatibility_date:
      Schema.optional<typeof Schema.String>; account_id: Schema.optional<typeof
      Schema.String>; compatibility_flags: Schema.optional<Schema.Array$<typeof
      Schema.String>>; workers_dev: Schema.optional<typeof Schema.Boolean>;
      preview_urls: Schema.optional<typeof Schema.Boolean>; route:
      Schema.optional<Schema.Union<[typeof Schema.String, Schema.Struct<{
      custom_domain: Schema.optional<typeof Schema.Boolean>; pattern: typeof
      Schema.String; zone_id: typeof Schema.String }>, Schema.Struct<{
      custom_domain: Schema.optional<typeof Schema.Boolean>; pattern: typeof
      Schema.String; zone_name: typeof Schema.String }>, Schema.Struct<{
      custom_domain: typeof Schema.Boolean; pattern: typeof Schema.String }>]>>;
      routes: Schema.optional<Schema.Array$<Schema.Union<[typeof Schema.String,
      Schema.Struct<{ custom_domain: Schema.optional<typeof Schema.Boolean>;
      pattern: typeof Schema.String; zone_id: typeof Schema.String }>,
      Schema.Struct<{ custom_domain: Schema.optional<typeof Schema.Boolean>;
      pattern: typeof Schema.String; zone_name: typeof Schema.String }>,
      Schema.Struct<{ custom_domain: typeof Schema.Boolean; pattern: typeof
      Schema.String }>]>>>; tsconfig: Schema.optional<typeof Schema.String>;
      triggers: Schema.optional<Schema.Struct<{ crons:
      Schema.optional<Schema.Array$<typeof Schema.String>> }>>; rules:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; build:
      Schema.optional<Schema.Struct<{ command: Schema.optional<typeof
      Schema.String>; cwd: Schema.optional<typeof Schema.String>; watch_dir:
      Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof
      Schema.String>]>> }>>; no_bundle: Schema.optional<typeof Schema.Boolean>;
      find_additional_modules: Schema.optional<typeof Schema.Boolean>; base_dir:
      Schema.optional<typeof Schema.String>; preserve_file_names:
      Schema.optional<typeof Schema.Boolean>; minify: Schema.optional<typeof
      Schema.Boolean>; keep_names: Schema.optional<typeof Schema.Boolean>;
      logpush: Schema.optional<typeof Schema.Boolean>; limits:
      Schema.optional<Schema.Struct<{ cpu_ms: Schema.optional<typeof
      Schema.Number>; subrequests: Schema.optional<typeof Schema.Number> }>>;
      observability: Schema.optional<Schema.Struct<{ enabled:
      Schema.optional<typeof Schema.Boolean>; head_sampling_rate:
      Schema.optional<typeof Schema.Number> }>>; assets:
      Schema.optional<Schema.Struct<{ binding: Schema.optional<typeof
      Schema.String>; directory: Schema.optional<typeof Schema.String>;
      html_handling: Schema.optional<Schema.Literal<["auto-trailing-slash",
      "force-trailing-slash", "drop-trailing-slash", "none"]>>;
      not_found_handling:
      Schema.optional<Schema.Literal<["single-page-application", "404-page",
      "none"]>>; run_worker_first: Schema.optional<Schema.Union<[typeof
      Schema.Boolean, Schema.Array$<typeof Schema.String>]>> }>>; placement:
      Schema.optional<Schema.Struct<{ hint: Schema.optional<typeof
      Schema.String>; host: Schema.optional<typeof Schema.String>; hostname:
      Schema.optional<typeof Schema.String>; mode: Schema.optional<typeof
      Schema.String>; region: Schema.optional<typeof Schema.String> }>>; define:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.String>>; vars: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; durable_objects:
      Schema.optional<typeof Schema.Unknown>; kv_namespaces:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; r2_buckets:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; vectorize:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; services:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; queues:
      Schema.optional<typeof Schema.Unknown>; workflows:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; tail_consumers:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; d1_databases:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; hyperdrive:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
      analytics_engine_datasets: Schema.optional<Schema.Array$<typeof
      Schema.Unknown>>; send_email: Schema.optional<Schema.Array$<typeof
      Schema.Unknown>>; ai: Schema.optional<typeof Schema.Unknown>; browser:
      Schema.optional<typeof Schema.Unknown>; version_metadata:
      Schema.optional<typeof Schema.Unknown> }, readonly [Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>]>>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/wrangler/schema.ts#L140
description: ''
---

# WranglerEnvRecordSchema
