VITE_BACKEND_URL=http://localhost:9621 VITE_API_PROXY=true VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status # LightRAG WebUI — runtime configuration template. # # IMPORTANT: VITE_API_PREFIX and VITE_WEBUI_PREFIX have been removed. The # browser-visible URL prefixes are now resolved at REQUEST time from the # backend's LIGHTRAG_API_PREFIX and LIGHTRAG_WEBUI_PATH (see project root # `env.example`). One WebUI build is reusable across any number of # reverse-proxy prefixes / Docker instances — no per-site rebuild needed. # # How it works: # - Build artifacts contain `` and use # relative asset URLs (`./assets/...`). # - On each request, the FastAPI server replaces the placeholder with # ``. # - The SPA reads `window.__LIGHTRAG_CONFIG__` for `axios.baseURL`, fetch # templates, and in-app links. # # This file only needs to define dev-server proxy settings; copy to `.env` # if you also want to run `bun run dev` from a deployed checkout. # # For dev-time multi-site simulation (running `bun run dev` against a # backend that is already configured with a site prefix), use # `VITE_DEV_API_PREFIX` and `VITE_DEV_WEBUI_PREFIX` — see # `env.development.smaple`. # # End-to-end deployment guide: docs/MultiSiteDeployment.md