Skip to content

Commit 87b76f9

Browse files
committed
update env and netlify
1 parent e9c1c04 commit 87b76f9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.env.development

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
ENABLE_GATSBY_REFRESH_ENDPOINT=1
2+
BASE_URL=http://c3.lndo.site/
23
GATSBY_HOT_LOADER = fast-refresh
3-
GATSBY_PAGE_SIZE=16
4+
GATSBY_PAGE_SIZE=16
5+
GRAPHQL=http://c3.lndo.site/graphql/

gatsby-config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ module.exports = {
4242
options: {
4343
typeName: "Drupal",
4444
fieldName: "drupal",
45-
url: `http://c3.lndo.site/graphql/`
45+
url: process.env.GRAPHQL
4646
},
4747
},
4848
{
4949
resolve: `gatsby-source-drupal`,
5050
options: {
51-
baseUrl: `http://c3.lndo.site/`,
51+
baseUrl: process.env.BASE_URL,
5252
apiBase: `jsonapi`, // optional, defaults to `jsonapi`
5353
preview: true,
5454
},

netlify.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[context.production.environment]
22

3-
BASE_URL = "http://epic-gatsby-chapter-three-ci.pantheonsite.io/"
3+
BASE_URL = "http://epic-gatsby-chapter-three-ci.pantheonsite.io/"
4+
GRAPHQL = "http://epic-gatsby-chapter-three-ci.pantheonsite.io/graphql/"

0 commit comments

Comments
 (0)