Skip to content

Commit 9831b17

Browse files
authored
chore: fix vercel (#270)
1 parent 1d2b39d commit 9831b17

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.dumirc.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default defineConfig({
77
name: 'rc-progress',
88
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
99
},
10-
outputPath: '.doc',
1110
exportStatic: {},
1211
styles: [
1312
`

now.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
{
66
"src": "package.json",
77
"use": "@now/static-build",
8-
"config": { "distDir": ".doc" }
8+
"config": { "distDir": "dist" }
99
}
10-
],
11-
"routes": [
12-
{ "src": "/(.*)", "dest": "/dist/$1" }
1310
]
1411
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
"scripts": {
2727
"start": "dumi dev",
2828
"docs:build": "dumi build",
29-
"docs:deploy": "gh-pages -d docs-dist",
29+
"docs:deploy": "gh-pages -d dist",
30+
"deploy": "npm run docs:build && npm run docs:deploy",
3031
"compile": "father build",
3132
"prepare": "dumi setup",
32-
"gh-pages": "npm run build && father doc deploy",
33+
"gh-pages": "npm run now-build && father doc deploy",
3334
"prepublishOnly": "npm run compile && np --yolo --no-publish",
3435
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js",
3536
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",

0 commit comments

Comments
 (0)