Skip to content

Commit cef6c5e

Browse files
authored
Fix caching in netlify build. (#202)
* Fix caching in build. Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai> * tweak Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai> * Revert test change to pxl_documentation.json Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai>
1 parent 1f06bf8 commit cef6c5e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
22
publish ="public/"
3-
command = "yarn install && yarn lint && gatsby build"
3+
command = "gatsby clean && yarn install && yarn lint && gatsby build"
44

55
[context.branch-deploy.environment]
66
GATSBY_DEPLOY_ENV = "main"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"license": "Apache-2.0 and CC-BY-4.0",
77
"author": "Pixie Labs <support@pixielabs.ai>",
88
"scripts": {
9+
"clean": "gatsby clean",
10+
"serve": "gatsby serve",
911
"build": "gatsby build --prefix-paths",
1012
"start": "gatsby develop",
1113
"develop": "gatsby develop",

0 commit comments

Comments
 (0)