diff --git a/.gitignore b/.gitignore index 9979eab9..24feb58c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,9 +9,10 @@ __pycache__/ # Virtual Environment .venv/ -env/ venv/ -*.env* + +# Enviroment Variable Files +.env # Build / Distribution dist/ diff --git a/lightrag_webui/.env.development b/lightrag_webui/.env.development index 501be53c..5a6ac93f 100644 --- a/lightrag_webui/.env.development +++ b/lightrag_webui/.env.development @@ -1,4 +1,4 @@ # Development environment configuration 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,/static +VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status diff --git a/lightrag_webui/env.development.smaple b/lightrag_webui/env.development.smaple index 501be53c..5a6ac93f 100644 --- a/lightrag_webui/env.development.smaple +++ b/lightrag_webui/env.development.smaple @@ -1,4 +1,4 @@ # Development environment configuration 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,/static +VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status diff --git a/lightrag_webui/env.local.sample b/lightrag_webui/env.local.sample index 0cd53ad5..d8920437 100644 --- a/lightrag_webui/env.local.sample +++ b/lightrag_webui/env.local.sample @@ -1,3 +1,3 @@ VITE_BACKEND_URL=http://localhost:9621 VITE_API_PROXY=true -VITE_API_ENDPOINTS=/,/api,/documents,/graphs,/graph,/health,/query,/docs,/openapi.json,/login,/auth-status +VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status diff --git a/lightrag_webui/vite.config.ts b/lightrag_webui/vite.config.ts index c89c34b4..5cb52992 100644 --- a/lightrag_webui/vite.config.ts +++ b/lightrag_webui/vite.config.ts @@ -10,10 +10,7 @@ export default defineConfig({ resolve: { alias: { '@': path.resolve(__dirname, './src') - }, - // Force all modules to use the same katex instance - // This ensures mhchem extension registered in main.tsx is available to rehype-katex - dedupe: ['katex'] + } }, // base: import.meta.env.VITE_BASE_URL || '/webui/', base: webuiPrefix, @@ -43,7 +40,7 @@ export default defineConfig({ changeOrigin: true, rewrite: endpoint === '/api' ? (path) => path.replace(/^\/api/, '') : - endpoint === '/docs' || endpoint === '/redoc' || endpoint === '/openapi.json' || endpoint === '/static' ? + endpoint === '/docs' || endpoint === '/redoc' || endpoint === '/openapi.json' ? (path) => path : undefined } ])