Skip to content

Commit dc4a559

Browse files
author
liangjun.chen
committed
chore: vercel deploy
1 parent 3553322 commit dc4a559

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.dumirc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'dumi';
2+
const isGitPagesSite = process.env.GITHUB_ACTIONS;
23

34
export default defineConfig({
45
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
@@ -8,8 +9,8 @@ export default defineConfig({
89
},
910
exportStatic: {},
1011
outputPath: 'docs-dist',
11-
base: '/rc-overflow/',
12-
publicPath: '/rc-overflow/',
12+
base: isGitPagesSite ? `/rc-overflow/` : ``,
13+
publicPath: isGitPagesSite ? `/rc-overflow/` : ``,
1314
styles: [
1415
`
1516
.markdown table {

now.json

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

0 commit comments

Comments
 (0)