Refactor Vite configuration and add environment type definitions

- Removed local Vite config file
- Updated dev scripts to use default config
- Added env.d.ts for type definitions
- Enhanced Vite config with dynamic proxy
- Simplified build and dev script commands
This commit is contained in:
yangdx
2025-03-05 18:25:51 +08:00
parent 0ca7c0e230
commit 81b78bda76
4 changed files with 23 additions and 40 deletions

7
lightrag_webui/src/env.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_PROXY: string
readonly VITE_API_ENDPOINTS: string
readonly VITE_BACKEND_URL: string
}