fix: remove hardcoded prod/local browser URLs from app dev bundle
- Create centralized src/config/apiConfig.ts for API_BASE, TLSYNC_URL, WHISPERLIVE_URL, and SEARCH_URL resolution - Fix multiplayerUser.tsx to use VITE_TLSYNC_URL instead of deriving from VITE_FRONTEND_SITE_URL (was pointing to prod TLSync) - Replace all 127.0.0.1:8080 fallbacks with /api (relative path) - Replace all localhost:8000 fallbacks with VITE_API_BASE || /api - Remove hardcoded https://api.classroomcopilot.ai production fallbacks from transcription store and panel - Fix axiosConfig.ts to use centralized API config - Update .env.dev: set VITE_TLSYNC_URL to dev frontend URL - Update .env.development: fix VITE_SEARCH_URL from localhost to prod - Add missing env var type declarations to vite-env.d.ts Fixes: t_73d78fb1
This commit is contained in:
+1
-1
@@ -37,4 +37,4 @@ VITE_MICROSOFT_CLIENT_SECRET_ID=dummy_secret_id
|
||||
VITE_MICROSOFT_CLIENT_SECRET=dummy_secret
|
||||
VITE_MICROSOFT_TENANT_ID=common
|
||||
|
||||
VITE_SEARCH_URL=http://localhost:8888
|
||||
VITE_SEARCH_URL=https://search.kevlarai.com
|
||||
|
||||
Reference in New Issue
Block a user