diff --git a/website/console/env/index.ts b/website/console/env/index.ts index 44e49a153..d18276e09 100644 --- a/website/console/env/index.ts +++ b/website/console/env/index.ts @@ -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?:\/\//, '') || ''; +const ADMIN_API_URL = process.env.ADMIN_API_URL?.replace(/https?:\/\//, '') || 'localhost:30080'; // 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 = `localhost.${ADMIN_API_URL}`; +const LOCAL_DEV_HOST = process.env.LOCAL_DEV_HOST || 'localhost'; /** * @depricated use BASE_HREF