Skip to content

Environment Variables

This page documents the current environment variables used by Zelavis runtime and dashboard development flows.

Used by the zelavis dashboard core service when you want dashboard requests to redirect to a live UI dev server instead of serving embedded built assets.

Equivalent code-level option:

import { zelavis } from "zelavis";
await zelavis({
coreServices: {
dashboard: {
devServerUrl: "http://127.0.0.1:3001/zelavis",
},
},
});

Notes:

  • Point this at the mounted dashboard base URL, not just the bare dev-server origin, when the UI dev server is mounted below /zelavis.
  • pnpm run ui:dev wires this automatically.

Used by @zelavis/ui during standalone Vite development to decide which backend origin should receive proxied API requests.

Default:

http://127.0.0.1:3000

Example:

Terminal window
ZELAVIS_DEV_SERVER=http://127.0.0.1:3333 pnpm --filter @zelavis/ui dev

Used by @zelavis/ui to mount the standalone UI dev server under a production-style dashboard base path.

Example:

Terminal window
ZELAVIS_UI_BASE_PATH=/zelavis/ pnpm --filter @zelavis/ui dev

Notes:

  • Leave it unset for a root-mounted standalone UI dev server.
  • pnpm run ui:dev sets this automatically so the live dashboard dev flow runs under /zelavis/.