Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
build: cleanup & read ../.env
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Mar 1, 2020
1 parent 3ec5c8c commit b23efe0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ const plugins = [
'deploy-preview': {
policy: [{ userAgent: `*`, disallow: [`/`] }],
},
...(!isNetlifyProduction
? {
'branch-deploy': {
policy: [{ userAgent: `*`, disallow: [`/`] }],
},
}
: {}),
...(!isNetlifyProduction && {
'branch-deploy': {
policy: [{ userAgent: `*`, disallow: [`/`] }],
},
}),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion gatsby/createPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = store => ({ actions, getNodes, graphql }) => {
}

// https://github.com/gatsbyjs/gatsby/issues/5129#issuecomment-442397391
// https://github.com/davidbailey00/manuelbieh.de/blob/62714633fb13b6e04c9e24f587114419299af946/gatsby-node.js
// https://github.com/davidbailey00/manuelbieh.de/blob/62714633fb13b6e04c9e24f587114419299af946/gatsby-node.js#L66
if (slug === `404`) {
// create root 404
if (lang === `en`) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/gaiama/gaiama.org/issues"
},
"scripts": {
"dev": "GATSBY_TELEMETRY_DISABLED=1 GATSBY_TELEMETRY_DEBUG=0 GATSBY_GRAPHQL_IDE=playground ENABLE_GATSBY_REFRESH_ENDPOINT=1 gatsby develop --https --host 0.0.0.0",
"dev": "export $(cat ../.env | grep -v ^# | xargs) && GATSBY_TELEMETRY_DISABLED=1 GATSBY_TELEMETRY_DEBUG=0 GATSBY_GRAPHQL_IDE=not-playground ENABLE_GATSBY_REFRESH_ENDPOINT=1 gatsby develop --https --host 0.0.0.0",
"dev:full": "GATSBY_GRAPHQL_IDE=playground GAIAMA_FULL_CONTENT=1 yarn dev",
"debug": "DEBUG=* yarn dev",
"debug:gatsby": "DEBUG=gatsby* yarn dev",
Expand Down

0 comments on commit b23efe0

Please sign in to comment.