---
title: ServerHandleRuntime
description: Runtime inputs SvelteKit supplies to the generated registry.
updated_at: '2026-11-19T06:37:33+01:00'
created_at: '2026-11-11T09:53:08+01:00'
symbol:
  kind: interface
  name: ServerHandleRuntime
  signatures:
    - interface ServerHandleRuntime
  members:
    - name: privateEnv
      kind: property
      signature: 'readonly privateEnv: Readonly<Record<string, unknown>>'
      description: >-
        The server's private env, used when the platform has no env of its own:
        `$env/dynamic/private` in SvelteKit 2, `process.env` in SvelteKit 3,
        whose `$env/dynamic/private` holds only the variables an app declares.
    - name: workers
      kind: property
      signature: >-
        readonly workers?: { readonly env: Readonly<Record<string, unknown>> } &
        WaitUntilHost
      description: >-
        The `cloudflare:workers` module on Cloudflare under SvelteKit 3, which
        no longer puts `env` and `ctx` on `platform`: plugins read its `env` and
        keep work alive with its `waitUntil`.
    - name: building
      kind: property
      signature: 'readonly building: boolean'
      description: >-
        `$app/environment`'s `building`: plugin routes answer 404 while
        prerendering.
    - name: dev
      kind: property
      signature: 'readonly dev: boolean'
      description: >-
        `$app/environment`'s `dev`: `context.env` is then `privateEnv` (the dev
        server's env and `.env`) plus the
        [[reference/api/core/DEV_BINDINGS|DEV_BINDINGS]], because
        adapter-cloudflare's dev emulator withholds `platform.env` from
        prerenderable routes, which plugin URLs fall under.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/plugin/server.ts#L193
---

# ServerHandleRuntime
