Skip to content

test(docs): fail docs build when SSR errors are detected - #23201

Open
btea wants to merge 3 commits into
vitejs:mainfrom
btea:ci/docs-ssr-error-check
Open

test(docs): fail docs build when SSR errors are detected#23201
btea wants to merge 3 commits into
vitejs:mainfrom
btea:ci/docs-ssr-error-check

Conversation

@btea

@btea btea commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Vue SSR silently swallows component render errors via handleError (console.warn), so vitepress build exits 0 even when pages are broken. This caused the voidzero/vitepress-alpha.19 incompatibility to go unnoticed. Add a wrapper script that greps the build output for SSR errors and exits non-zero if any are found.

The current CI failure is reasonable; it will only pass normally after #23199 is merged or @voidzero-dev/vitepress-theme is fixed and updated.

Vue SSR silently swallows component render errors via handleError
(console.warn), so vitepress build exits 0 even when pages are broken.
This caused the voidzero/vitepress-alpha.19 incompatibility to go
unnoticed. Add a wrapper script that greps the build output for
SSR errors and exits non-zero if any are found.
@sapphi-red

Copy link
Copy Markdown
Member

I think this should be fixed on the vitepress side.

@btea

btea commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Okay, I'll apply a patch first to verify the process.

https://github.com/vitejs/vite/actions/runs/31999117019/job/95296015095?pr=23201
Based on the testing, it's currently meeting expectations. Let's wait for the VitePress review update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants