Skip to content

Commit 23106d5

Browse files
committed
Fix(mdj): minor bug fixes
1 parent 627ca07 commit 23106d5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
base = "/"
44
publish = "/public"
5-
command = "./stackbit-build.sh"
5+
command = "yarn run build"
66

7-
[context.production]
7+
[enviroment.production]
88
NODE_ENV = "production"
99
NODE_VERSION = "14.17.x"
1010
NPM_VERSION = "7.20.x"
@@ -32,7 +32,7 @@
3232
pwa = 0.4
3333

3434
# optional, deploy the lighthouse report to a path under your site
35-
[plugins.inputs]
35+
[plugins.inputs.audits]
3636
output_path = "reports/lighthouse/.html"
3737

3838
[[plugins]]

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"scripts": {
88
"develop": "gatsby develop",
99
"start": "yarn run develop",
10-
"build": "cross-env GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --prefix-paths --log-pages",
10+
"build": "echo 'started build' && yarn run stackbit && yarn install && yarn run compile && echo 'finished build' && yarn run serve",
11+
"stackbit": "npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://api.stackbit.com/pull/60323df295aa610015b59f66 --stackbit-api-key=STACKBIT_API_KEY",
12+
"compile": "cross-env GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --prefix-paths --log-pages",
1113
"serve": "gatsby serve"
1214
},
1315
"dependencies": {

0 commit comments

Comments
 (0)