---
title: createHostIndexSource
description: >-
  `virtual:svartz/index`: each vault's published index and site metadata, in
  config order. It imports no page runtime or theme, not even dynamically, so a
  host that only reads the index never compiles Svartz's page runtime.
updated_at: '2026-11-19T05:31:22+01:00'
created_at: '2026-09-24T07:12:15+02:00'
symbol:
  kind: function
  name: createHostIndexSource
  signatures:
    - >-
      createHostIndexSource(vaults: readonly
      [[reference/api/core/ResolvedConfig|ResolvedConfig]][], kitBasePath?:
      string): string
  parameters:
    - name: vaults
      type: 'readonly [[reference/api/core/ResolvedConfig|ResolvedConfig]][]'
    - name: kitBasePath
      type: string
      optional: true
  returns:
    type: string
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/host-registry.ts#L50
---

# createHostIndexSource
