Skip to content

Commit 72ec243

Browse files
authored
Netlify config: drop NPM prepare command (#215)
1 parent 56e7094 commit 72ec243

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

netlify.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
33

44
[build]
5-
command = "npm build:preview"
5+
command = "npm run build:preview"
6+
publish = "public"
67

78
[build.environment]
89
GO_VERSION = "1.20.4"
910

1011
[context.production]
11-
command = "npm build:production"
12+
command = "npm run build:production"

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"precheck:links": "npm run build",
2525
"postbuild:preview": "npm run _check:links",
2626
"postbuild:production": "npm run _check:links",
27-
"prepare": "cd .. && npm install",
2827
"serve": "npm run _serve",
2928
"test": "npm run check:links",
3029
"update:pkg:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest",

0 commit comments

Comments
 (0)