File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'dumi' ;
2
+ const isGitPagesSite = process . env . GITHUB_ACTIONS ;
2
3
3
4
export default defineConfig ( {
4
5
favicons : [ 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ] ,
@@ -8,8 +9,8 @@ export default defineConfig({
8
9
} ,
9
10
exportStatic : { } ,
10
11
outputPath : 'docs-dist' ,
11
- base : ' /rc-overflow/' ,
12
- publicPath : ' /rc-overflow/' ,
12
+ base : isGitPagesSite ? ` /rc-overflow/` : `` ,
13
+ publicPath : isGitPagesSite ? ` /rc-overflow/` : `` ,
13
14
styles : [
14
15
`
15
16
.markdown table {
Original file line number Diff line number Diff line change 4
4
"builds" : [
5
5
{
6
6
"src" : " package.json" ,
7
- "use" : " @now /static-build" ,
7
+ "use" : " @vercel /static-build" ,
8
8
"config" : { "distDir" : " docs-dist" }
9
9
}
10
- ],
11
- "routes" : [
12
- { "src" : " /(.*)" , "dest" : " /dist/$1" }
13
10
]
14
11
}
You can’t perform that action at this time.
0 commit comments