From cabf33789efebed61c1dd2713ce09316b14aa59c Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 14 Feb 2024 07:50:09 -0600 Subject: [PATCH] Removed old implementation. --- .../ClientApp/src/hooks.client.ts | 6 ------ .../ClientApp/static/runtime-env.js | 19 ------------------- 2 files changed, 25 deletions(-) delete mode 100644 src/Exceptionless.Web/ClientApp/static/runtime-env.js diff --git a/src/Exceptionless.Web/ClientApp/src/hooks.client.ts b/src/Exceptionless.Web/ClientApp/src/hooks.client.ts index 3dbcdd31c3..9dbd711bea 100644 --- a/src/Exceptionless.Web/ClientApp/src/hooks.client.ts +++ b/src/Exceptionless.Web/ClientApp/src/hooks.client.ts @@ -1,12 +1,6 @@ import { Exceptionless, toError } from '@exceptionless/browser'; import { env } from '$env/dynamic/public'; -const { __env = {} } = globalThis as unknown as { __env: typeof env }; - -// if we are in production, we will use the environment variables that were injected via docker configuration. -if (__env && import.meta.env.PROD) { - Object.assign(env, __env); -} // If the PUBLIC_BASE_URL is set in local storage, we will use that instead of the one from the environment variables. // This allows you to target other environments from your browser. diff --git a/src/Exceptionless.Web/ClientApp/static/runtime-env.js b/src/Exceptionless.Web/ClientApp/static/runtime-env.js deleted file mode 100644 index 09fc3d668b..0000000000 --- a/src/Exceptionless.Web/ClientApp/static/runtime-env.js +++ /dev/null @@ -1,19 +0,0 @@ -(function (window) { - 'use strict'; - - window.__env = { - PUBLIC_BASE_URL: '', - PUBLIC_USE_SSL: false, - PUBLIC_ENABLE_ACCOUNT_CREATION: true, - PUBLIC_SYSTEM_NOTIFICATION_MESSAGE: '', - PUBLIC_EXCEPTIONLESS_API_KEY: '', - PUBLIC_EXCEPTIONLESS_SERVER_URL: '', - PUBLIC_STRIPE_PUBLISHABLE_KEY: '', - PUBLIC_FACEBOOK_APPID: '', - PUBLIC_GITHUB_APPID: '', - PUBLIC_GOOGLE_APPID: '', - PUBLIC_MICROSOFT_APPID: '', - PUBLIC_INTERCOM_APPID: '', - PUBLIC_SLACK_APPID: '' - }; -})(this);