We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1993613 commit 6ebfff9Copy full SHA for 6ebfff9
.gitignore
@@ -73,3 +73,6 @@ typings/
73
public
74
yarn-error.log
75
.netlify/
76
+
77
+# Local Netlify folder
78
+.netlify
gatsby-config.js
@@ -22,6 +22,10 @@ try {
22
}
23
24
25
+if (process.env.NODE_ENV === `production` && config.siteUrl === `http://localhost:8000` && !process.env.SITEURL) {
26
+ throw new Error(`siteUrl can't be localhost and needs to be configured in siteConfig. Check the README.`) // eslint-disable-line
27
+}
28
29
/**
30
* This is the place where you can tell Gatsby which plugins to use
31
* and set them up the way you want.
netlify.toml
@@ -1,5 +1,5 @@
1
[build]
2
- command = "gatsby build"
+ command = "NODE_ENV=production gatsby build"
3
publish = "public/"
4
5
[template]
0 commit comments