From d84d43d39a3b8c9b8818e4f3711226fd73a67afc Mon Sep 17 00:00:00 2001 From: Remko Date: Mon, 11 Dec 2023 16:20:13 +0100 Subject: [PATCH] dev test --- pwa/src/layout/Layout.tsx | 1 + pwa/src/services/getConfig.ts | 5 +++-- pwa/static/.env.development | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pwa/src/layout/Layout.tsx b/pwa/src/layout/Layout.tsx index 7fbaecd9..b58b0311 100644 --- a/pwa/src/layout/Layout.tsx +++ b/pwa/src/layout/Layout.tsx @@ -44,6 +44,7 @@ const Layout: React.FC = ({ children, pageContext, location }) => { if (process.env.GATSBY_ENV_VARS_SET === "true") { initiateFromEnv(); } else { + console.log(window.location.hostname); initiateFromJSON(window.location.hostname); } }, []); diff --git a/pwa/src/services/getConfig.ts b/pwa/src/services/getConfig.ts index dcbafcea..49a2cb6d 100644 --- a/pwa/src/services/getConfig.ts +++ b/pwa/src/services/getConfig.ts @@ -13,8 +13,6 @@ import OpenCatalogi from "./../../static/configFiles/opencatalogi.json"; export const getConfig = (themeOrDomainName: string): Record | undefined => { switch (themeOrDomainName) { // case "localhost": // development purposes - case "opencatalogi.nl": - return OpenCatalogi; case "commonground-theme": return CommonGround; case "rotterdam-theme": @@ -31,6 +29,9 @@ export const getConfig = (themeOrDomainName: string): Record | unde return Dimpact; case "open-webconcept-theme": return OpenWebconcept; + case "opencatalogi.nl": + case "dev.opencatalogi.nl": + return OpenCatalogi; default: return CommonGround; diff --git a/pwa/static/.env.development b/pwa/static/.env.development index 357dbd32..d3bb9381 100644 --- a/pwa/static/.env.development +++ b/pwa/static/.env.development @@ -47,4 +47,4 @@ GATSBY_FOOTER_CONTENT_HEADER="" GATSBY_OPTIONAL_START_PAGE= # Deployment option, if you're using this .env file DO NOT REMOVE OR EDIT THIS -GATSBY_ENV_VARS_SET="true" \ No newline at end of file +# GATSBY_ENV_VARS_SET="true" \ No newline at end of file