fix Docker API URL configuration

- Use relative URLs for Docker deployment
- Default API_BASE_URL to '/api' for containerized environment
- Remove undefined VITE_API_URL causing broken API calls
This commit is contained in:
Chris Scott committed 2025-11-24 00:27:06 -05:00
1 parent 0925d9f531
commit 3545e852e9
1 file changed
+2 -4
+2 -4
View File
@@ -1,5 +1,3 @@
export const API_BASE_URL = import.meta.env.VITE_API_URL
export const API_BASE_URL = import.meta.env.VITE_API_URL || '/api'
export const OPENCODE_API_ENDPOINT = import.meta.env.VITE_API_URL
? `${import.meta.env.VITE_API_URL}/api/opencode`
: '/api/opencode'
export const OPENCODE_API_ENDPOINT = '/api/opencode'