From c44b5c22d1b468127cc490c8814aeefa21a3fe4c Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Tue, 25 Nov 2025 13:27:17 -0500 Subject: [PATCH] Fix TypeScript path resolution for Docker build --- frontend/src/config.ts | 4 ++++ frontend/src/constants/api.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 frontend/src/config.ts diff --git a/frontend/src/config.ts b/frontend/src/config.ts new file mode 100644 index 00000000..21c34464 --- /dev/null +++ b/frontend/src/config.ts @@ -0,0 +1,4 @@ +export const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:5001' +export const OPENCODE_API_ENDPOINT = import.meta.env.VITE_OPENCODE_PORT + ? `http://localhost:${import.meta.env.VITE_OPENCODE_PORT}` + : 'http://localhost:5551' \ No newline at end of file diff --git a/frontend/src/constants/api.ts b/frontend/src/constants/api.ts index abb8056a..47fbbb9c 100644 --- a/frontend/src/constants/api.ts +++ b/frontend/src/constants/api.ts @@ -1 +1 @@ -export { API_BASE_URL, OPENCODE_API_ENDPOINT } from '../config' \ No newline at end of file +export { API_BASE_URL, OPENCODE_API_ENDPOINT } from '@/config' \ No newline at end of file