---
title: createServerRegistrySource
description: >-
  The vault's server-only module: its active server plugins as a registry;
  `svartzHandle`, the SvelteKit `handle` that routes `/_svartz/<id>/` to them;
  and `svartzPage`, which renders their pages under `/-/` for the plugin page
  route's `load`. `virtual:svartz/server` is this module in the standalone
  shell; host apps get one that chains every vault's. Its env imports keep it
  out of client bundles. `serverData` is what each plugin's hooks recorded for
  its server module this build, keyed by plugin id.
updated_at: '2026-11-19T04:52:33+01:00'
created_at: '2026-03-07T03:07:52+01:00'
symbol:
  kind: function
  name: createServerRegistrySource
  signatures:
    - >-
      createServerRegistrySource(config:
      [[reference/api/core/ResolvedConfig|ResolvedConfig]], plugins: readonly
      [[reference/api/core/NormalizedSvartzPlugin|NormalizedSvartzPlugin]][],
      deploymentBasePath?: string, markdown?: Readonly<Record<string, string>>,
      serverData?: ReadonlyMap<string, unknown>, serverRuntime?: ServerRuntime):
      string
  parameters:
    - name: config
      type: '[[reference/api/core/ResolvedConfig|ResolvedConfig]]'
    - name: plugins
      type: >-
        readonly
        [[reference/api/core/NormalizedSvartzPlugin|NormalizedSvartzPlugin]][]
    - name: deploymentBasePath
      type: string
      optional: true
    - name: markdown
      type: 'Readonly<Record<string, string>>'
      optional: true
    - name: serverData
      type: 'ReadonlyMap<string, unknown>'
      optional: true
    - name: serverRuntime
      type: ServerRuntime
      optional: true
  returns:
    type: string
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/artifacts.ts#L122
---

# createServerRegistrySource
