Skip to content

Commit c72f049

Browse files
committed
chore: align image preview output
1 parent 1244874 commit c72f049

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.dumirc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default defineConfig({
77
'@rc-component/image/es': path.resolve('src'),
88
},
99
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
10+
outputPath: 'docs-dist',
1011
themeConfig: {
1112
name: 'Image',
1213
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',

.github/workflows/cloudflare-pages-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
with:
3535
apiToken: ${{ env.CLOUDFLARE_API_TOKEN }}
3636
accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }}
37-
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PAGES_PROJECT }} --branch=${{ github.head_ref }}
37+
command: pages deploy docs-dist --project-name=${{ env.CLOUDFLARE_PAGES_PROJECT }} --branch=${{ github.head_ref }}
3838
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/surge-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
surge_token: ${{ env.SURGE_TOKEN }}
2626
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
dist: dist
27+
dist: docs-dist
2828
failOnError: true
2929
setCommitStatus: true
3030
build: |

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"framework": "umijs",
33
"installCommand": "npm install",
4-
"buildCommand": "npm run build && rm -rf docs-dist && cp -R dist docs-dist",
4+
"buildCommand": "npm run build",
55
"outputDirectory": "docs-dist"
66
}

0 commit comments

Comments
 (0)