From 3545e852e90a46bb16954b3877a063e3f3625c7d Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Mon, 24 Nov 2025 00:27:06 -0500 Subject: [PATCH] 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 --- frontend/src/constants/api.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/constants/api.ts b/frontend/src/constants/api.ts index 5819cce9..4fc1c11d 100644 --- a/frontend/src/constants/api.ts +++ b/frontend/src/constants/api.ts @@ -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' \ No newline at end of file +export const OPENCODE_API_ENDPOINT = '/api/opencode' \ No newline at end of file