Skip to content

Commit

Permalink
Merge pull request #415 from OpenCatalogi/feature/OP-155/filters
Browse files Browse the repository at this point in the history
ConfigTest
  • Loading branch information
remko48 authored Dec 11, 2023
2 parents 3d12f87 + d84d43d commit d3f7de9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions pwa/src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const Layout: React.FC<LayoutProps> = ({ children, pageContext, location }) => {
if (process.env.GATSBY_ENV_VARS_SET === "true") {
initiateFromEnv();
} else {
console.log(window.location.hostname);
initiateFromJSON(window.location.hostname);
}
}, []);
Expand Down
5 changes: 3 additions & 2 deletions pwa/src/services/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import OpenCatalogi from "./../../static/configFiles/opencatalogi.json";
export const getConfig = (themeOrDomainName: string): Record<string, any> | undefined => {
switch (themeOrDomainName) {
// case "localhost": // development purposes
case "opencatalogi.nl":
return OpenCatalogi;
case "commonground-theme":
return CommonGround;
case "rotterdam-theme":
Expand All @@ -31,6 +29,9 @@ export const getConfig = (themeOrDomainName: string): Record<string, any> | unde
return Dimpact;
case "open-webconcept-theme":
return OpenWebconcept;
case "opencatalogi.nl":
case "dev.opencatalogi.nl":
return OpenCatalogi;

default:
return CommonGround;
Expand Down
2 changes: 1 addition & 1 deletion pwa/static/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# GATSBY_ENV_VARS_SET="true"

0 comments on commit d3f7de9

Please sign in to comment.