Skip to content

Commit

Permalink
UPDATE gatsby-config
Browse files Browse the repository at this point in the history
  • Loading branch information
lencodes committed Sep 12, 2023
1 parent 6166440 commit 62a1b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pwa/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
4 changes: 4 additions & 0 deletions pwa/static/.env.development
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 62a1b4c

Please sign in to comment.