---
title: VaultConfigSchema
description: >-
  Vault config: required id, path, target + optional vault options (same shape
  as defaults; merged with defaults).
updated_at: '2026-11-11T09:53:08+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: variable
  name: VaultConfigSchema
  signatures:
    - >-
      const VaultConfigSchema: Schema.Struct<{ id: typeof Schema.String; path:
      typeof Schema.String; target: 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<[..., ..., ..., ...]>>; routes:
      Schema.optional<Schema.Array$<Schema.Union<...>>>; tsconfig:
      Schema.optional<typeof Schema.String>; triggers:
      Schema.optional<Schema.Struct<{ … }>>; rules:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>>; build:
      Schema.optional<Schema.Struct<{ … }>>; 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<{ … }>>; observability:
      Schema.optional<Schema.Struct<{ … }>>; assets:
      Schema.optional<Schema.Struct<{ … }>>; placement:
      Schema.optional<Schema.Struct<{ … }>>; 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<..., ...>>> }>>>, 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>
      }>]>; mountPath: Schema.optional<Schema.filter<typeof Schema.String>>;
      publicationMode: Schema.optional<Schema.Literal<["exclusion",
      "inclusion"]>>; include: Schema.optional<Schema.Array$<typeof
      Schema.String>>; exclude: Schema.optional<Schema.Array$<typeof
      Schema.String>>; linkResolution:
      Schema.optional<Schema.Literal<["closest", "shallowest", "absolute"]>>;
      theme: Schema.optional<Schema.Union<[typeof Schema.String,
      Schema.extend<Schema.TypeLiteral<{ base: Schema.Union<[typeof
      Schema.String, Schema.NonEmptyArray<...>]>; comments:
      Schema.optional<Schema.filter<Schema.Struct<...>>>; recentNotes:
      Schema.optional<Schema.Struct<{ … }>> }, readonly [Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>]>, Schema.Struct<{ accentColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; animation: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; aria:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; aspectRatio: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backdropBlur:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backdropBrightness:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backdropContrast: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backdropGrayscale:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backdropHueRotate: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backdropInvert:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backdropOpacity: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backdropSaturate:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backdropSepia: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backgroundColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backgroundImage: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; backgroundOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backgroundPosition:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; backgroundSize: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; blur:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; borderColor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; borderOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; borderRadius: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; borderSpacing:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; borderWidth: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; boxShadow:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; boxShadowColor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; brightness:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; caretColor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; colors:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; columns: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; container:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; content: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; contrast:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; cursor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; data:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; divideColor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; divideOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; divideWidth: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; dropShadow:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; fill: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; flex:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; flexBasis: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; flexGrow:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; flexShrink: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; fontFamily:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; fontSize: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; fontWeight:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gap: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gradientColorStopPositions:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gradientColorStops:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; grayscale: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gridAutoColumns:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gridAutoRows: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gridColumn:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gridColumnEnd: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gridColumnStart:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gridRow: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gridRowEnd:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gridRowStart: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; gridTemplateColumns:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; gridTemplateRows: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; height:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; hueRotate: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; inset:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; invert: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; keyframes:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; letterSpacing: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; lineClamp:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; lineHeight: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; listStyleImage:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; listStyleType: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; margin:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; maxHeight: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; maxWidth:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; minHeight: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; minWidth:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; objectPosition: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; opacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; order: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; outlineColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; outlineOffset: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; outlineWidth:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; padding: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; placeholderColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; placeholderOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; ringColor: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; ringOffsetColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; ringOffsetWidth: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; ringOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; ringWidth: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; rotate:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; saturate: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; scale:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; screens: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; scrollMargin:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; scrollPadding: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; sepia:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; size: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; skew:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; space: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; spacing:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; stroke: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; strokeWidth:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; supports: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; textColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; textDecorationColor:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; textDecorationThickness:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; textIndent: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; textOpacity:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; textUnderlineOffset:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; transformOrigin: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; transitionDelay:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; transitionDuration:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; transitionProperty:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; transitionTimingFunction:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; translate: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; width:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>>; willChange: Schema.optional<Schema.Record$<typeof
      Schema.String, typeof Schema.Unknown>>; zIndex:
      Schema.optional<Schema.Record$<typeof Schema.String, typeof
      Schema.Unknown>> }>>]>>; frontmatter: Schema.optional<Schema.Struct<{
      titleField: Schema.optional<typeof Schema.String>; descriptionField:
      Schema.optional<typeof Schema.String>; tagsField: Schema.optional<typeof
      Schema.String>; aliasesField: Schema.optional<typeof Schema.String>;
      createdAtField: Schema.optional<typeof Schema.String>; updatedAtField:
      Schema.optional<typeof Schema.String>; publishedField:
      Schema.optional<typeof Schema.String>; dateFormat: Schema.optional<typeof
      Schema.String> }>>; site: Schema.optional<Schema.Struct<{ title:
      Schema.optional<typeof Schema.String>; description: Schema.optional<typeof
      Schema.String>; url: Schema.optional<Schema.filter<typeof Schema.String>>;
      author: Schema.optional<typeof Schema.String>; image:
      Schema.optional<typeof Schema.String>; favicon:
      Schema.optional<Schema.filter<typeof Schema.String>> }>>; analytics:
      Schema.optional<Schema.Union<[Schema.Struct<{ provider:
      Schema.Literal<["plausible"]>; host: Schema.optional<Schema.filter<typeof
      Schema.String>>; scriptSrc: Schema.optional<Schema.filter<typeof
      Schema.String>> }>, Schema.Struct<{ provider: Schema.Literal<["google"]>;
      tagId: Schema.filter<typeof Schema.String> }>, Schema.Struct<{ provider:
      Schema.Literal<["umami"]>; websiteId: Schema.filter<typeof Schema.String>;
      host: Schema.optional<Schema.filter<typeof Schema.String>> }>,
      Schema.Struct<{ provider: Schema.Literal<["goatcounter"]>; websiteId:
      Schema.filter<typeof Schema.String>; host:
      Schema.optional<Schema.filter<typeof Schema.String>>; scriptSrc:
      Schema.optional<Schema.filter<typeof Schema.String>> }>, Schema.Struct<{
      provider: Schema.Literal<["posthog"]>; apiKey: Schema.filter<typeof
      Schema.String>; host: Schema.optional<Schema.filter<typeof Schema.String>>
      }>, Schema.Struct<{ provider: Schema.Literal<["tinylytics"]>; siteId:
      Schema.filter<typeof Schema.String> }>, Schema.Struct<{ provider:
      Schema.Literal<["cabin"]>; host: Schema.optional<Schema.filter<typeof
      Schema.String>> }>, Schema.Struct<{ provider: Schema.Literal<["clarity"]>;
      projectId: Schema.filter<typeof Schema.String> }>, Schema.Struct<{
      provider: Schema.Literal<["matomo"]>; host: Schema.filter<typeof
      Schema.String>; siteId: Schema.filter<typeof Schema.String> }>,
      Schema.Struct<{ provider: Schema.Literal<["vercel"]> }>, Schema.Struct<{
      provider: Schema.Literal<["rybbit"]>; siteId: Schema.filter<typeof
      Schema.String>; host: Schema.optional<Schema.filter<typeof Schema.String>>
      }>]>>; discovery: Schema.optional<Schema.Struct<{ feed:
      Schema.optional<Schema.Struct<{ … }>>; sitemap:
      Schema.optional<Schema.Struct<{ … }>>; socialImages:
      Schema.optional<Schema.Struct<{ … }>>; llms:
      Schema.optional<Schema.Struct<{ … }>>; favicon:
      Schema.optional<Schema.Struct<{ … }>>; dateSources:
      Schema.optional<Schema.filter<Schema.Array$<Schema.Literal<["frontmatter",
      "git", "filesystem"]>>>> }>>; index: Schema.optional<Schema.Struct<{
      markdown: Schema.optional<typeof Schema.Boolean> }>>; outDir:
      Schema.optional<typeof Schema.String>; plugins:
      Schema.optional<Schema.Array$<typeof Schema.Unknown>> }>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/config/src/schemas/svartz.ts#L192
---

# VaultConfigSchema
