MCPcopy
hub / github.com/HKUDS/LightRAG / ImportMetaEnv

Interface ImportMetaEnv

lightrag_webui/src/vite-env.d.ts:3–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/// <reference types="vite/client" />
2
3interface ImportMetaEnv {
4 /* ───────────── dev-server proxy ───────────── */
5
6 /** When `true`, `bun run dev` proxies the listed endpoints to the backend. */
7 readonly VITE_API_PROXY: string
8 /** Comma-separated list of paths the dev server forwards to the backend. */
9 readonly VITE_API_ENDPOINTS: string
10 /** Backend origin the dev server forwards to (e.g. `http://localhost:9621`). */
11 readonly VITE_BACKEND_URL: string
12
13 /* ───────────── dev-time multi-site simulation ─────────────
14 *
15 * Optional. Lets `bun run dev` mimic a reverse-proxied deployment so the
16 * SPA can be exercised under the same path prefix it will see in
17 * production — without a rebuild. Read by `vite.config.ts` and injected
18 * into `index.html` as `window.__LIGHTRAG_CONFIG__`, mirroring what the
19 * FastAPI server does at request time in production. The matching
20 * `webuiPrefix` is derived as `${VITE_DEV_API_PREFIX}/webui/` (the WebUI
21 * mount path is fixed at /webui server-side).
22 *
23 * Empty / unset → no prefix; the dev server behaves the same as today.
24 *
25 * See `lightrag_webui/env.development.smaple` and
26 * `docs/MultiSiteDeployment.md` for end-to-end examples.
27 */
28
29 /** Browser-visible API prefix to simulate in dev. Must match the backend's
30 * `LIGHTRAG_API_PREFIX` if a real prefixed backend is being proxied to. */
31 readonly VITE_DEV_API_PREFIX?: string
32}
33
34interface ImportMeta {
35 readonly env: ImportMetaEnv

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected