Skip to content

Commit

Permalink
Removes more white labeling code (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosschapman authored Sep 17, 2024
1 parent 5373647 commit 85beb33
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
4 changes: 0 additions & 4 deletions app/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ interface Config {
AUTH0_REDIRECT_URI: string;
GOOGLE_ANALYTICS_GA4_ID: string;
GOOGLE_API_KEY: string;
MOHCD_DOMAIN: string;
MOHCD_SUBDOMAIN: string;
STRAPI_API_TOKEN: string;
STRAPI_API_URL: string;
}
Expand All @@ -28,8 +26,6 @@ const config: Config = {
AUTH0_REDIRECT_URI: CONFIG.AUTH0_REDIRECT_URI,
GOOGLE_ANALYTICS_GA4_ID: process.env.NODE_ENV === "production" ? "" : "",
GOOGLE_API_KEY: CONFIG.GOOGLE_API_KEY,
MOHCD_DOMAIN: CONFIG.MOHCD_DOMAIN,
MOHCD_SUBDOMAIN: CONFIG.MOHCD_SUBDOMAIN,
STRAPI_API_TOKEN: CONFIG.STRAPI_API_TOKEN,
STRAPI_API_URL: CONFIG.STRAPI_API_URL,
};
Expand Down
7 changes: 0 additions & 7 deletions config.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@ GOOGLE_API_KEY: "GOOGLE_API_KEY_REPLACE_ME"
ALGOLIA_INDEX_PREFIX: "ALGOLIA_INDEX_PREFIX_REPLACE_ME"
ALGOLIA_APPLICATION_ID: "ALGOLIA_APPLICATION_ID_REPLACE_ME"
ALGOLIA_READ_ONLY_API_KEY: "ALGOLIA_READ_ONLY_API_KEY_REPLACE_ME"

MOHCD_SUBDOMAIN: "MOHCD_SUBDOMAIN_REPLACE_ME"
MOHCD_DOMAIN: "MOHCD_DOMAIN_REPLACE_ME"

SFFAMILIES_DOMAIN: "SFFAMILIES_DOMAIN_REPLACE_ME"

LINKSF_DOMAIN: "LINKSF_DOMAIN_REPLACE_ME"
2 changes: 1 addition & 1 deletion tools/replace-environment-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -euo pipefail
js_bundle=$1
shift

env_vars='AUTH0_AUDIENCE AUTH0_CLIENT_ID AUTH0_DOMAIN AUTH0_REDIRECT_URI GOOGLE_API_KEY ALGOLIA_INDEX_PREFIX ALGOLIA_APPLICATION_ID ALGOLIA_READ_ONLY_API_KEY MOHCD_SUBDOMAIN MOHCD_DOMAIN SFFAMILIES_DOMAIN LINKSF_DOMAIN'
env_vars='AUTH0_AUDIENCE AUTH0_CLIENT_ID AUTH0_DOMAIN AUTH0_REDIRECT_URI GOOGLE_API_KEY ALGOLIA_INDEX_PREFIX ALGOLIA_APPLICATION_ID ALGOLIA_READ_ONLY_API_KEY'

for env_var in $env_vars; do
env_var_value=$(eval echo \$$env_var)
Expand Down
5 changes: 0 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ const environmentConfig = [
"ALGOLIA_INDEX_PREFIX",
"ALGOLIA_APPLICATION_ID",
"ALGOLIA_READ_ONLY_API_KEY",
"MOHCD_SUBDOMAIN",
"MOHCD_DOMAIN",
"SFFAMILIES_DOMAIN",
"TESTCAFE_RUNNING",
"LINKSF_DOMAIN",
"AUTH0_AUDIENCE",
"AUTH0_CLIENT_ID",
"AUTH0_DOMAIN",
Expand Down

0 comments on commit 85beb33

Please sign in to comment.