From de40fc9384aa18c6507765db86cf26c4e58fcded Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 21 Mar 2024 11:07:57 -0700 Subject: [PATCH] cr --- frontend/app/utils/api_url.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/app/utils/api_url.ts b/frontend/app/utils/api_url.ts index 107e59a..9c341c3 100644 --- a/frontend/app/utils/api_url.ts +++ b/frontend/app/utils/api_url.ts @@ -1,9 +1,3 @@ export const getBaseApiUrl = () => { - if (process.env.NODE_ENV === "development") { - return "http://localhost:8000"; - } - if (!process.env.BASE_API_URL) { - throw new Error("BASE_API_URL must be set if not in development."); - } - return process.env.BASE_API_URL; + return "http://localhost:8000"; };