Upgrade Astro from version 5 to 6 - #4075
Closed
dev-dist wants to merge 2 commits into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
👋 dev-dist, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
dev-dist
marked this pull request as draft
August 17, 2026 20:15
dev-dist
force-pushed
the
worktree-astro-upgrade-pr1
branch
from
August 17, 2026 20:49
e07a078 to
e61c8a2
Compare
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.
This pull request introduces several significant updates to the project, primarily focused on upgrading the Node.js and JavaScript framework versions, improving how React and Preact components are handled, and updating related tooling and dependencies. The most important changes are summarized below.
Node.js and Dependency Upgrades
22.12.0, updating.nvmrc,.tool-versions,package.json, and GitHub workflow files to ensure consistency. [1] [2] [3] [4] [5]astro(v6),@astrojs/react,@astrojs/preact,@astrojs/mdx,@astrojs/prism, and@astrojs/vercel, as well as thevitebuild tool. [1] [2] [3]React/Preact Component Handling Improvements
jsx-renderer-tagintegration (src/integrations/jsx-renderer-tag) and updatedastro.config.tsto ensure that each.tsx/.jsxfile is explicitly tagged for either React or Preact rendering, regardless of how it is imported (including through barrel files). This avoids accidental miscompilation and ensures correct SSR renderer selection. [1] [2] [3]astro.config.tsand configured the React and Preact integrations to include or exclude files based on this list, preventing renderer conflicts. [1] [2]Other Notable Changes
root: truefor better project linting isolation. (.eslintrc.cjs)These updates modernize the codebase, improve reliability when mixing React and Preact, and keep the project aligned with the latest ecosystem standards.