Skip to content

Commit 3920ce8

Browse files
fix(build): Fix yarn start error (flyteorg#853)
Resolves: flyteorg/flyte#5075 Signed-off-by: Chi-Sheng Liu <[email protected]>
1 parent eb7fe2b commit 3920ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/console/env/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const CERTIFICATE_PATH = '../../scripts/certificate';
3131
const ADMIN_API_USE_SSL = process.env.ADMIN_API_USE_SSL || 'http';
3232

3333
// Admin domain used as base for window URL and API urls
34-
const ADMIN_API_URL = process.env.ADMIN_API_URL?.replace(/https?:\/\//, '') || '';
34+
const ADMIN_API_URL = process.env.ADMIN_API_URL?.replace(/https?:\/\//, '') || 'localhost:30080';
3535

3636
// If this is unset, API calls will default to the same host used to serve this app
3737
const ADMIN_API = ADMIN_API_URL ? `//${ADMIN_API_URL}` : '';
3838

3939
// Webpage for local development
40-
const LOCAL_DEV_HOST = `localhost.${ADMIN_API_URL}`;
40+
const LOCAL_DEV_HOST = process.env.LOCAL_DEV_HOST || 'localhost';
4141

4242
/**
4343
* @depricated use BASE_HREF

0 commit comments

Comments
 (0)