Skip to content

Commit 0a14a8d

Browse files
committed
Fix build based on vuejs/docs
1 parent 794629c commit 0a14a8d

File tree

3 files changed

+112
-109
lines changed

3 files changed

+112
-109
lines changed

netlify.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build.environment]
22
NODE_VERSION = "16"
3-
NPM_FLAGS = "--version" # prevent Netlify npm install
43

54
[build]
65
publish = ".vitepress/dist"
7-
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"
6+
command = "pnpm run build"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"dev": "vitepress",
88
"build": "vitepress build",
9-
"serve": "vitepress serve"
9+
"serve": "vitepress serve",
10+
"preinstall": "npx only-allow pnpm"
1011
},
1112
"keywords": [],
1213
"author": "",

0 commit comments

Comments
 (0)