Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/docs/concepts/projects/project-configuration |
|
Deployment failed with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
|
Fast-tracking as a hot-fix. |
There was a problem hiding this comment.
Pull request overview
Adds a custom Vercel build step intended to run the repo’s webpack-cloning step before producing the static site output (out/) for deployment.
Changes:
- Update
vercel.jsonto configure a custom build command that runsclone-webpackand thenbuild. - Minor JSON formatting change (adds a trailing comma after
trailingSlash).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "cleanUrls": true, | ||
| "trailingSlash": false | ||
| "trailingSlash": false, | ||
| "buildCommand": "node --run clone-webpack && node --run build" |
There was a problem hiding this comment.
The GitHub Pages deploy workflow creates the out/ directory before running the doc-kit generation (mkdir out && npm run build-html). The new Vercel build command doesn’t do this; if doc-kit expects the output directory to exist, the Vercel build may fail. Consider adding mkdir -p out (or moving this into the build/build-html script) so all build paths behave consistently.
| "buildCommand": "node --run clone-webpack && node --run build" | |
| "buildCommand": "mkdir -p out && node --run clone-webpack && node --run build" |
| "cleanUrls": true, | ||
| "trailingSlash": false | ||
| "trailingSlash": false, | ||
| "buildCommand": "node --run clone-webpack && node --run build" |
There was a problem hiding this comment.
The property name is "buildCommand:" (with a trailing colon), which won’t be recognized by Vercel’s config schema (expects buildCommand). As a result the custom build command will be ignored. Rename the key to buildCommand, and consider using the repo’s existing npm scripts (npm run clone-webpack && npm run build) instead of node --run ... to match CI and avoid relying on Node’s experimental --run support on Vercel.
No description provided.