Skip to content

Upgrade to Astro v7 - #2477

Merged
delucis merged 10 commits into
mainfrom
upgrade/astro-v7
Jun 23, 2026
Merged

delucis merged 10 commits into
mainfrom
upgrade/astro-v7

Conversation

@matthewp

@matthewp matthewp commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor
  • astro 6.4.4 → 7.0.0
  • @astrojs/mdx 6.0.2 → 7.0.0
  • @astrojs/netlify 7.0.12 → 8.0.0
  • Remove experimental.rustCompiler (now default)
  • Add @astrojs/markdown-remark with unified() processor (MDX files use await in JSX expressions)
  • Temporarily relax minimumReleaseAge for beta packages

- astro 6.4.4 → 7.0.0-beta.5
- @astrojs/mdx 6.0.2 → 7.0.0-beta.3
- @astrojs/netlify 7.0.12 → 8.0.0-beta.1
- Remove experimental.rustCompiler (now default)
- Add @astrojs/markdown-remark with unified() processor
  (MDX files use await in JSX expressions)
- Temporarily relax minimumReleaseAge for beta packages
@netlify

netlify Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astro-www-2 ready!

Name Link
🔨 Latest commit d082bf8
🔍 Latest deploy log https://app.netlify.com/projects/astro-www-2/deploys/6a3a4c7ae9dc7a0008a4584f
😎 Deploy Preview https://deploy-preview-2477--astro-www-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread astro.config.mjs Outdated
},
},
markdown: {
processor: unified(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about saterri compat and didn't want to deal with it in this PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the Astro config file, it seems we do not use any remark/rehype plugin, so Sätteri should work (ie. we don't need to port anything but, yeah, we might want to double-check existing blog posts).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well dogfood I guess, will update.

@matthewp
matthewp marked this pull request as ready for review June 18, 2026 18:27

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't checked the preview yet, so this is more an initial review. One of my comment is more a concern about Astro 7 release than migrating to Astro 7; you might know better how this works.

Comment thread astro.config.mjs Outdated
},
},
markdown: {
processor: unified(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the Astro config file, it seems we do not use any remark/rehype plugin, so Sätteri should work (ie. we don't need to port anything but, yeah, we might want to double-check existing blog posts).

Comment thread package.json Outdated
Comment thread astro.config.mjs Outdated
Comment thread pnpm-workspace.yaml Outdated

@trueberryless trueberryless left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me 7️⃣

I just found a new warning when building locally which is not logged on main:

Image

Removing the invalid :[&:nth-child] part in the class of the links of the sponsors here and here removes the warning (notice that no argument is passed to nth-child, which is why it is invalid). I think this pseudo selector was unintentionally copied from the other lg: breakpoints. All borders are correctly applied even without the pseudo selector.

@delucis delucis changed the title Upgrade to Astro v7 beta Upgrade to Astro v7 Jun 23, 2026

@delucis delucis left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a couple of tweaks and browsed various pages — everything looks good to me!

Good catch on that selector warning @trueberryless! I think we can fix that in a follow-up PR as it’s not a new issue, just a newly visible warning.

Also noting that curiously the preview deploys are a little slower than main is currently (~1m50s vs ~1m30s comparing last 3 deploys for each). Haven’t investigated why yet — could just be a blip.

@delucis
delucis merged commit abe42ac into main Jun 23, 2026
6 checks passed
@delucis
delucis deleted the upgrade/astro-v7 branch June 23, 2026 09:33
@delucis delucis mentioned this pull request Jun 25, 2026
3 of 5 tasks
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.

4 participants