diff --git a/pwa/src/services/getConfig.ts b/pwa/src/services/getConfig.ts index faaa665f..e080f707 100644 --- a/pwa/src/services/getConfig.ts +++ b/pwa/src/services/getConfig.ts @@ -1,8 +1,8 @@ -import Rotterdam from "./../../static/configFiles/rotterdam.json"; +import Epe from "./../../static/configFiles/epe.json"; export const getConfig = (domain: string): Record | undefined => { switch (domain) { - case "localhost": - return Rotterdam as Record; + case "open.epe.nl": + return Epe as Record; } }; diff --git a/pwa/src/services/initiateEnvironment.ts b/pwa/src/services/initiateEnvironment.ts index ec0afd11..6ffa76dc 100644 --- a/pwa/src/services/initiateEnvironment.ts +++ b/pwa/src/services/initiateEnvironment.ts @@ -31,18 +31,3 @@ export const initiateEnvironment = () => { window.sessionStorage.setItem("FOOTER_CONTENT_HEADER", config.GATSBY_FOOTER_CONTENT_HEADER ?? ""); window.sessionStorage.setItem("OIDN_NUMBER", config.GATSBY_OIDN_NUMBER ?? ""); }; - -export const getPathPrefix = (): string => { - const varsAvailable = process.env.GATSBY_ENV_VARS_SET === "true"; - const config = getConfig(window.location.hostname); - - if (varsAvailable && process.env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true") { - return `/${process.env.GITHUB_REPOSITORY_NAME}`; - } - - if (config && config.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX) { - return `/${config.GITHUB_REPOSITORY_NAME}`; - } - - return ""; -}; diff --git a/pwa/src/templates/jumbotronTemplate/JumbotronTemplate.tsx b/pwa/src/templates/jumbotronTemplate/JumbotronTemplate.tsx index 96c29588..a5096d67 100644 --- a/pwa/src/templates/jumbotronTemplate/JumbotronTemplate.tsx +++ b/pwa/src/templates/jumbotronTemplate/JumbotronTemplate.tsx @@ -11,7 +11,7 @@ export const JumbotronTemplate: React.FC = () => {
diff --git a/pwa/static/.env.development b/pwa/static/.env.development index 097bdf6d..10402024 100644 --- a/pwa/static/.env.development +++ b/pwa/static/.env.development @@ -25,4 +25,4 @@ GATSBY_FOOTER_CONTENT_HEADER="" GATSBY_OIDN_NUMBER="" # 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