env.local.sample 1.4 KB

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