Skip to content

build: upgrade site to Astro 7 - #5

Merged
reecelikesramen merged 5 commits into
mainfrom
astro-v7
Sep 23, 2026
Merged

reecelikesramen merged 5 commits into
mainfrom
astro-v7

Conversation

@reecelikesramen

@reecelikesramen reecelikesramen commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades the site to Astro 7 (^7.3.4): @astrojs/mdx 8, sitemap 3.7.4, partytown 2.1.8, astro-compress 2.4.3, astro-icon 1.2.
  • Adds site/pnpm-workspace.yaml (allowBuilds for esbuild/sharp/@parcel/watcher, shamefullyHoist) — Astro 7's vite module-runner fails to resolve astro's internals (piccolore, html-escaper) under pnpm's isolated layout without hoisting.
  • CI: node 20 → 24, pnpm 9 → 10, action-setup v2 → v4.
  • Replaces retired cloudflare/pages-action with wrangler-action@v3 (prod deploys were broken since the action was removed — last successful main deploy was May).
  • Note: shamefullyHoist config lives in pnpm-workspace.yaml, which pnpm 10 honors.

Security

  • pnpm audit --prod: 0 vulnerabilities (was 17: 12 high / 5 moderate, all transitive — resolved by in-range updates).

Verification

  • pnpm build: 134 pages built (baseline astro 5 build was already broken on this layout; now green).
  • pnpm check (prettier + eslint + tsc): all pass.

Verified with pnpm 10.34.5 (CI's target) and pnpm 12 (local).

- astro ^5.13 -> ^7.3.4, @astrojs/mdx ^4 -> ^8, @astrojs/sitemap ^3.7.4,
  @astrojs/partytown ^2.1.8, astro-compress ^2.4.3, astro-icon ^1.2.0
- add pnpm-workspace.yaml (allowBuilds for esbuild/sharp/@parcel/watcher,
  shamefullyHoist) and .npmrc shamefully-hoist for pnpm 9 CI
- astro 7 vite module-runner can't resolve astro's aliased internals
  (piccolore/html-escaper) under pnpm's isolated layout without hoisting
- pnpm audit --prod: 0 vulnerabilities (was 17, incl. 12 high)
- node 22 -> 24 (astro 7 needs >=22.12), pnpm 9 -> 10, action-setup v2 -> v4
- pnpm 10 accepts the settings-only site/pnpm-workspace.yaml (allowBuilds
  + shamefullyHoist) that pnpm 9 rejected for missing packages field
- drop site/.npmrc shamefully-hoist shim (pnpm 10 reads pnpm-workspace.yaml)
@reecelikesramen
reecelikesramen merged commit d978ad3 into main Sep 23, 2026
1 check passed
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.

1 participant