Skip to content

Commit 4844d14

Browse files
committed
fix: netlify build
1 parent f26bcae commit 4844d14

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

buildnetify.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
npx pnpm i --store=node_modules/.pnpm-store
4+
sed -i 's/\/vuepress-blog\//\//g' docs/.vuepress/components/constants/constants.ts
5+
cd ./docs/.vuepress/realcugan-ncnn-webassembly
6+
bash build.sh
7+
npx pnpm docs:build

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[build]
66
publish = "docs/.vuepress/dist"
7-
command = "npx pnpm i --store=node_modules/.pnpm-store && sed -i \"s|\/vuepress-blog\/||g\" docs/.vuepress/components/constants/constants.ts && cd ./docs/.vuepress/realcugan-ncnn-webassembly && bash build.sh && npx pnpm docs:build"
7+
command = "bash buildnetify.sh"
88

99
[[redirects]]
1010
from = "/*"

0 commit comments

Comments
 (0)