---
title: createHostRegistrySource
description: >-
  `virtual:svartz/host`: the host eagerly reads route metadata and loads runtime
  code only for the selected mount. It also exports SvelteKit's `base` and
  `assets`, which SvelteKit 3's `$app/paths` no longer does.
updated_at: '2026-11-19T05:31:22+01:00'
created_at: '2026-09-24T07:12:15+02:00'
symbol:
  kind: function
  name: createHostRegistrySource
  signatures:
    - >-
      createHostRegistrySource(vaults: readonly
      [[reference/api/core/ResolvedConfig|ResolvedConfig]][], kitPaths?:
      SvelteKitPaths): string
  parameters:
    - name: vaults
      type: 'readonly [[reference/api/core/ResolvedConfig|ResolvedConfig]][]'
    - name: kitPaths
      type: SvelteKitPaths
      optional: true
  returns:
    type: string
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/host-registry.ts#L65
---

# createHostRegistrySource
