chore(desktop): add env files for dev/production and update dev scripts

- Track .env.development and .env.production for desktop app
- Add MAIN_VITE_API_URL to all env files
- Remove hardcoded GATEWAY_URL from dev scripts (now in .env.development)
- Update .env.example with full documentation of all env vars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yushen 2026-02-14 07:30:54 +08:00
parent ef32078b3c
commit eb07f12c49
5 changed files with 50 additions and 2 deletions

View file

@ -0,0 +1,10 @@
# Gateway WebSocket URL (dev)
MAIN_VITE_GATEWAY_URL=https://multica-dev.copilothub.ai
# Web URL for OAuth login (dev)
MAIN_VITE_WEB_URL=http://localhost:3000
# API URL for main process bridge (dev)
MAIN_VITE_API_URL=https://api-dev.copilothub.ai
# API URL for renderer (dev)
RENDERER_VITE_API_URL=https://api-dev.copilothub.ai
# API URL for core/tools (dev)
MULTICA_API_URL=https://api-dev.copilothub.ai