feat(bootstrap): refactor runtime dependency management and add lazy loading for binary store and vector index

feat(agent): update import for agent session service
feat(openai): add context truncation check in OpenAI answer generator
docs(README): update frontend environment file conventions
fix(vite): default local frontend development to local backend
This commit is contained in:
ash66
2026-05-25 13:58:48 +08:00
parent 091a02c522
commit 10a034e294
11 changed files with 162 additions and 15 deletions

View File

@@ -4,7 +4,8 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
const apiHost = env.API_HOST || '6.86.80.8'
// Default local frontend development to the local backend unless explicitly overridden.
const apiHost = env.API_HOST || '127.0.0.1'
const apiPort = env.API_PORT || '8000'
const proxyTarget = env.VITE_API_PROXY_TARGET || `http://${apiHost}:${apiPort}`