Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"framework": "umijs"
}
Comment on lines +1 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While dumi is based on umi, using the umijs framework preset might introduce unexpected behavior or break in the future, as the preset is optimized for umi applications, not dumi documentation sites. A more robust and explicit approach would be to use @vercel/static-build. This builder will use the now-build script from your package.json and expects the output in a dist directory, which aligns perfectly with your project's setup. This avoids reliance on a framework-specific preset that may not be fully compatible.

Suggested change
{
"framework": "umijs"
}
{
"builds": [{ "src": "package.json", "use": "@vercel/static-build" }]
}