From ea19963bf99ba00c5ad79d30f18175a104cc1e0d Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Wed, 5 Jun 2024 17:59:11 -0700 Subject: [PATCH] chore(superadmin): set apex domain default to local --- packages/superadmin/src/env.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/superadmin/src/env.ts b/packages/superadmin/src/env.ts index 2c82817c..a75b173f 100644 --- a/packages/superadmin/src/env.ts +++ b/packages/superadmin/src/env.ts @@ -6,17 +6,17 @@ import { boolean } from 'boolean' * will prevail. */ +// The apex domain of this whole operation. +export const PUBLIC_APEX_DOMAIN = + import.meta.env.PUBLIC_APEX_DOMAIN || `pockethost.lvh.me` + // The domain name where this dashboard lives export const PUBLIC_APP_URL = - import.meta.env.PUBLIC_APP_URL || 'https://app.pockethost.io' - -// The apex domain of this whole operation. Also known as the "app" or "dashboard" -export const PUBLIC_APEX_DOMAIN = - import.meta.env.PUBLIC_APEX_DOMAIN || `pockethost.io` + import.meta.env.PUBLIC_APP_URL || `https://app.${PUBLIC_APEX_DOMAIN}` // The domain name of the lander/marketing site export const PUBLIC_BLOG_URL = - import.meta.env.PUBLIC_BLOG_URL || 'https://pockethost.io' + import.meta.env.PUBLIC_BLOG_URL || `https://${PUBLIC_APEX_DOMAIN}` // The protocol to use, almost always will be https export const PUBLIC_HTTP_PROTOCOL = @@ -25,7 +25,7 @@ export const PUBLIC_HTTP_PROTOCOL = // The complete URL to the mothership export const PUBLIC_MOTHERSHIP_URL = import.meta.env.PUBLIC_MOTHERSHIP_URL || - `https://pockethost-central.pockethost.io` + `https://pockethost-central.${PUBLIC_APEX_DOMAIN}` // Whether we are in debugging mode - default TRUE export const PUBLIC_DEBUG = boolean(import.meta.env.PUBLIC_DEBUG || 'true')