---
title: TargetConfigSchema
updated_at: '2026-11-11T09:53:08+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: variable
  name: TargetConfigSchema
  signatures:
    - >-
      const TargetConfigSchema: Schema.Union<[Schema.Struct<{ type:
      Schema.Literal<["host"]> }>, Schema.extend<Schema.Struct<{ type:
      Schema.Literal<["cloudflare-workers"]> }>,
      Schema.extend<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: ...; pattern: ...; zone_id: ... }>, Schema.Struct<{
      custom_domain: ...; pattern: ...; zone_name: ... }>, Schema.Struct<{
      custom_domain: ...; pattern: ... }>]>>; routes:
      Schema.optional<Schema.Array$<Schema.Union<[typeof Schema.String,
      Schema.Struct<...>, Schema.Struct<...>, Schema.Struct<...>]>>>; tsconfig:
      Schema.optional<typeof Schema.String>; triggers:
      Schema.optional<Schema.Struct<{ crons: Schema.optional<Schema.Array$<...>>
      }>>; 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<...>> }>>; 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<...>>; not_found_handling:
      Schema.optional<Schema.Literal<...>>; run_worker_first:
      Schema.optional<Schema.Union<...>> }>>; 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>]>, Schema.Struct<{ keep_vars:
      Schema.optional<typeof Schema.Boolean>; migrations:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; send_metrics:
      Schema.optional<typeof Schema.Boolean>; env:
      Schema.optional<Schema.Record$<typeof Schema.String, Schema.TypeLiteral<{
      name: Schema.optional<...>; main: Schema.optional<...>;
      compatibility_date: Schema.optional<...>; account_id:
      Schema.optional<...>; compatibility_flags: Schema.optional<...>;
      workers_dev: Schema.optional<...>; preview_urls: Schema.optional<...>;
      route: Schema.optional<...>; routes: Schema.optional<...>; tsconfig:
      Schema.optional<...>; triggers: Schema.optional<...>; rules:
      Schema.optional<...>; build: Schema.optional<...>; no_bundle:
      Schema.optional<...>; find_additional_modules: Schema.optional<...>;
      base_dir: Schema.optional<...>; preserve_file_names: Schema.optional<...>;
      minify: Schema.optional<...>; keep_names: Schema.optional<...>; logpush:
      Schema.optional<...>; limits: Schema.optional<...>; observability:
      Schema.optional<...>; assets: Schema.optional<...>; placement:
      Schema.optional<...>; define: Schema.optional<...>; vars:
      Schema.optional<...>; durable_objects: Schema.optional<...>;
      kv_namespaces: Schema.optional<...>; r2_buckets: Schema.optional<...>;
      vectorize: Schema.optional<...>; services: Schema.optional<...>; queues:
      Schema.optional<...>; workflows: Schema.optional<...>; tail_consumers:
      Schema.optional<...>; d1_databases: Schema.optional<...>; hyperdrive:
      Schema.optional<...>; analytics_engine_datasets: Schema.optional<...>;
      send_email: Schema.optional<...>; ai: Schema.optional<...>; browser:
      Schema.optional<...>; version_metadata: Schema.optional<...> }, readonly
      [...]>>> }>>>, Schema.Struct<{ type: Schema.Literal<["cloudflare-pages"]>;
      projectName: Schema.optional<typeof Schema.String> }>, Schema.Struct<{
      type: Schema.Literal<["static"]>; basePath: Schema.optional<typeof
      Schema.String> }>, Schema.Struct<{ type: Schema.Literal<["node"]>;
      basePath: Schema.optional<typeof Schema.String> }>]>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/config/src/schemas/svartz.ts#L162
description: ''
---

# TargetConfigSchema
