fix(website): split npm ci from postinstall to avoid npm crash#47
Merged
Conversation
The first deploy-website run after the pnpm-migration fix failed with "npm error Exit handler never called!" during `npm ci` (8 min, no output, then an internal npm crash — likely the postinstall fumadocs-mdx handler tripping npm's exit machinery). Split the install into three visible steps so a crash is diagnosable and npm's postinstall handler is bypassed: - `npm ci --ignore-scripts` (install only) - `npm run prepare-source` (fumadocs-mdx, ~10ms, its own step) - `npm run build` (next build) Verified locally: ci --ignore-scripts + prepare-source + build all succeed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #45. The first
deploy-websiterun after the pnpm-migration fix failed:during
npm ci(8 minutes, no output, then an internal npm crash — likely thepostinstall: fumadocs-mdxhandler tripping npm's exit machinery).Fix
Split the install into three visible steps so a crash is diagnosable and npm's postinstall handler is bypassed:
npm ci --ignore-scriptsnpm run prepare-source(fumadocs-mdx, ~10ms)npm run build(next build)Verified locally
npm ci --ignore-scripts+npm run prepare-source+TASKFLOW_BASE_PATH=/taskflow npm run buildall succeed; the build emits static HTML for en + zh-cn.