From 62a1b4c15b2ab48693e834bef7466754f9dc44a7 Mon Sep 17 00:00:00 2001 From: Lennart Bank Date: Tue, 12 Sep 2023 15:52:25 +0200 Subject: [PATCH] UPDATE gatsby-config --- pwa/gatsby-config.js | 5 +++-- pwa/static/.env.development | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pwa/gatsby-config.js b/pwa/gatsby-config.js index c3ccec87..fd1da71c 100644 --- a/pwa/gatsby-config.js +++ b/pwa/gatsby-config.js @@ -4,8 +4,9 @@ require("dotenv").config({ module.exports = { pathPrefix: - process.env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" ?? - `$/${process.env.GITHUB_REPOSITORY_NAME}`, // we do NOT want to set the prefix if we're using an DNS + process.env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" + ? `$/${process.env.GITHUB_REPOSITORY_NAME}` + : "", // we do NOT want to set the prefix if we're using an DNS plugins: [ { resolve: `gatsby-plugin-layout`, diff --git a/pwa/static/.env.development b/pwa/static/.env.development index 126fc2f8..4656d5f5 100644 --- a/pwa/static/.env.development +++ b/pwa/static/.env.development @@ -1,5 +1,9 @@ # Connected Repository GITHUB_REPOSITORY_NAME=woo-website-template + +# options: "true" | "false" +USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX="true" + GATSBY_API_BASE_URL=https://api.gateway.commonground.nu/api GATSBY_NL_DESIGN_THEME_CLASSNAME=conduction-theme