Repository navigation
Override vite to 6.4.4 or later to clear open advisories - #8
Merged
Merged
Conversation
VitePress 1.x depends on vite 5, and every vite release up to 6.4.3 is affected by the advisories Dependabot reports (dev-server file access and cross-origin middleware, plus launch-editor). The build, typecheck and dev server work unchanged with vite 6.4.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafactx
enabled auto-merge (squash)
November 6, 2026 03:15
rafactx
added a commit
that referenced
this pull request
Nov 6, 2026
## What Add a pnpm override in `pnpm-workspace.yaml` so VitePress resolves vite 6.4.5 instead of 5.4.21. ## Why Dependabot has 5 open alerts on vite (affected range `<= 6.4.3`). They concern the dev server, not the static site, but they stay open until the lockfile no longer has an affected vite. VitePress 1.x pins vite 5, so a normal update cannot fix them. Supersedes #1 and #2. ## How tested - `pnpm install`, `pnpm typecheck`, `pnpm build`. - `pnpm preview` checked in a headless browser at 390px and 1440px: `/en/`, `/pt/`, `/en/intro`, `/pt/api-reference` render as before. - `pnpm dev` starts and serves `/pt/intro`.
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.
What
Add a pnpm override in
pnpm-workspace.yamlso VitePress resolves vite 6.4.5 instead of 5.4.21.Why
Dependabot has 5 open alerts on vite (affected range
<= 6.4.3). They concern the dev server, not the static site, but they stay open until the lockfile no longer has an affected vite. VitePress 1.x pins vite 5, so a normal update cannot fix them. Supersedes #1 and #2.How tested
pnpm install,pnpm typecheck,pnpm build.pnpm previewchecked in a headless browser at 390px and 1440px:/en/,/pt/,/en/intro,/pt/api-referencerender as before.pnpm devstarts and serves/pt/intro.