Skip to content

Commit

Permalink
Merge branch 'dev' into ADAPT-2726-focal-point
Browse files Browse the repository at this point in the history
* dev:
  ADAPT-000: GraphQL error and storyblok-js-client fixup (#231)
  ADAPT-3147 | @mattanglin | pipeline status checks (#221)

# Conflicts:
#	package-lock.json
#	src/components/media/aspectRatioImage.js
#	src/components/media/fullWidthImage.js
#	src/components/media/storyImage.js
#	src/utilities/transformImage.js
  • Loading branch information
yvonnetangsu committed Nov 9, 2021
2 parents 2b99fa2 + eb5dafa commit c926e9d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
17 changes: 17 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ require("dotenv").config({
path: `.env.${activeEnv}`,
});

// Support for Gatsby CLI
let siteUrl = 'http://localhost:8000';

// Support for Production site builds.
if (process.env.CONTEXT === 'production') {
siteUrl = process.env.URL;
}
// Support for non-production netlify builds (branch/preview)
else if (process.env.CONTEXT !== 'production' && process.env.NETLIFY) {
siteUrl = process.env.DEPLOY_PRIME_URL;
}
// Support for Netlify CLI.
else if (process.env.NETLIFY_DEV === true) {
siteUrl = 'http://localhost:64946';
}

/**
* Resolve relations for storyblok.
*/
Expand Down Expand Up @@ -115,6 +131,7 @@ module.exports = {
accessToken: process.env.GATSBY_STORYBLOK_ACCESS_TOKEN,
homeSlug: "home",
resolveRelations: storyblokRelations,
resolveLinks: 'url',
version: process.env.NODE_ENV == "production" ? "published" : "draft", // show only published on the front end site
// version: 'draft' // would show any including drafts
},
Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"react-slick": "^0.28.1",
"sanitize-html": "^2.3.3",
"slick-carousel": "^1.8.1",
"storyblok-js-client": "4.1.3",
"storyblok-react": "^0.1.2",
"tabbable": "^5.2.0",
"trim": "^1.0.1"
Expand Down

0 comments on commit c926e9d

Please sign in to comment.