From ffd2c9b466bfbb53ca5c2c9871735218f71cb157 Mon Sep 17 00:00:00 2001 From: palash-signoz Date: Wed, 9 Feb 2022 16:47:34 +0530 Subject: [PATCH] bug(UI): frontend build is fixed (#692) --- frontend/src/constants/env.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/constants/env.ts b/frontend/src/constants/env.ts index 6e12260df1..e7fe9610e0 100644 --- a/frontend/src/constants/env.ts +++ b/frontend/src/constants/env.ts @@ -1,3 +1,7 @@ export const ENVIRONMENT = { - baseURL: process?.env?.FRONTEND_API_ENDPOINT || process.env.GITPOD_WORKSPACE_URL.replace('://','://8080-') ||'http://localhost:8080'|| '', + baseURL: + process?.env?.FRONTEND_API_ENDPOINT || + process.env?.GITPOD_WORKSPACE_URL?.replace('://', '://8080-') || + 'http://localhost:8080' || + '', };