Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverting #853 #864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reverting #853
Signed-off-by: Jason Porter <jason@union.ai>
jsonporter committed Apr 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit e64c5e0d1a35717fb1189057c54ce1144297c92b
4 changes: 2 additions & 2 deletions website/console/env/index.ts
Original file line number Diff line number Diff line change
@@ -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 = `localhost.${ADMIN_API_URL}`;

/**
* @depricated use BASE_HREF
Loading