Skip to content

Commit

Permalink
fix: Partial revert PR #853 (#865)
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness authored Apr 19, 2024
1 parent 7e0f2bd commit 7bf5a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/console/env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const CERTIFICATE_PATH = '../../scripts/certificate';
const ADMIN_API_USE_SSL = process.env.ADMIN_API_USE_SSL || 'http';

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

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

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

/**
* @depricated use BASE_HREF
Expand Down

0 comments on commit 7bf5a25

Please sign in to comment.