env.development.smaple 1.1 KB

12345678910111213141516171819202122
  1. # Development environment configuration
  2. VITE_BACKEND_URL=http://localhost:9621
  3. VITE_API_PROXY=true
  4. VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status,/static
  5. # ──────────────────────────────────────────────────────────────────────────
  6. # Optional: simulate a reverse-proxied multi-site deployment in `bun run dev`.
  7. # Leave empty for the default no-prefix dev workflow.
  8. #
  9. # When set, `vite.config.ts` injects `window.__LIGHTRAG_CONFIG__` into the
  10. # dev `index.html` (the same mechanism the FastAPI server uses in
  11. # production), and `server.proxy` keys are prefixed automatically so e.g.
  12. # `/site01/documents/...` is forwarded to the backend running with
  13. # LIGHTRAG_API_PREFIX=/site01.
  14. #
  15. # The matching webuiPrefix is derived as `${VITE_DEV_API_PREFIX}/webui/`;
  16. # you only need to set this one variable. Empty / "/" → no prefix.
  17. #
  18. # See docs/MultiSiteDeployment.md for end-to-end examples.
  19. #
  20. # Example for site01: VITE_DEV_API_PREFIX=/site01
  21. # VITE_DEV_API_PREFIX=