Skip to content

Commit

Permalink
chore: vercel deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjun.chen committed Dec 6, 2023
1 parent 3553322 commit dc4a559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'dumi';
const isGitPagesSite = process.env.GITHUB_ACTIONS;

export default defineConfig({
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
Expand All @@ -8,8 +9,8 @@ export default defineConfig({
},
exportStatic: {},
outputPath: 'docs-dist',
base: '/rc-overflow/',
publicPath: '/rc-overflow/',
base: isGitPagesSite ? `/rc-overflow/` : ``,
publicPath: isGitPagesSite ? `/rc-overflow/` : ``,
styles: [
`
.markdown table {
Expand Down
5 changes: 1 addition & 4 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"use": "@vercel/static-build",
"config": { "distDir": "docs-dist" }
}
],
"routes": [
{ "src": "/(.*)", "dest": "/dist/$1" }
]
}

0 comments on commit dc4a559

Please sign in to comment.