Skip to content

Commit

Permalink
Merge pull request #167 from ConductionNL/feature/XW-106/JSON-config
Browse files Browse the repository at this point in the history
ADD Noordwijk json-config file
  • Loading branch information
lencodes authored Nov 14, 2023
2 parents eaf21ee + 3d91794 commit 462108a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pwa/src/services/getConfig.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import Conduction from "./../../static/configFiles/conduction.json";
import Epe from "./../../static/configFiles/epe.json";
import Noordwijk from "./../../static/configFiles/noordwijk.json";

export const getConfig = (domain: string): Record<string, any> | undefined => {
switch (domain) {
case "open.epe.nl":
return Epe as Record<string, any>;
case "open.noordwijk.nl":
return Noordwijk as Record<string, any>;
default:
return Conduction as Record<string, any>;
}
Expand Down
11 changes: 11 additions & 0 deletions pwa/static/configFiles/noordwijk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"GATSBY_API_BASE_URL": "https://api.gateway.commonground.nu/api",
"GATSBY_NL_DESIGN_THEME_CLASSNAME": "noordwijk-theme",
"GATSBY_FAVICON_URL": "https://www.noordwijk.nl/wp-content/uploads/2023/02/cropped-favicon-32x32.png",
"GATSBY_ORGANISATION_NAME": "Gemeente Noordwijk",
"GATSBY_JUMBOTRON_IMAGE_URL": "https://raw.githubusercontent.com/ConductionNL/woo-website-noordwijk/main/images/Bollenvelden%20Panorama%20Noordwijkerhout%20-%20Luchtfoto%5B3766%5D.JPG",
"GATSBY_FOOTER_LOGO_HREF": "https://www.noordwijk.nl/",
"GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/${{github.event.repository.name}}/main/FooterContent.json",
"GATSBY_FOOTER_CONTENT_HEADER": "heading-2",
"GATSBY_OIDN_NUMBER": "00000001825792150000"
}

0 comments on commit 462108a

Please sign in to comment.