Skip to content

Upgrade to Next.js 16#6

Merged
MaxGhenis merged 1 commit into
mainfrom
upgrade-next-16
May 9, 2026
Merged

Upgrade to Next.js 16#6
MaxGhenis merged 1 commit into
mainfrom
upgrade-next-16

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Bump next from ^14.2 to ^16.2.4 (resolves to 16.2.6)
  • Bump @policyengine/ui-kit from ^0.8.0 to ^0.9.0 (picks up types-resolution fix and /legacy colors.blue/success restoration)
  • Add turbopack.root to next.config.js (silences stray-lockfile warning when building from non-repo dirs)

React 19.2.x and Tailwind 4.x were already in place; no changes needed there.

Preservation guarantees

  • output: "export" and images.unoptimized retained — static export to out/ works
  • public/data/*.csv outputs from the Python pipeline pass through unchanged
  • All app pages (/, /_not-found) prerender as static content
  • No app, lib, src, or workflow code touched; this is a deps-only bump

Test plan

  • bun install clean
  • bun run build succeeds with Turbopack on Next 16.2.6
  • Static export emits index.html, 404.html, data/*.csv, robots.txt, sitemap.xml
  • CI green
  • Vercel deployment renders

Replaces the stale #1 (closed today). Branch name is upgrade-next-16 — the previous attempt's upgrade-next-16-tw4 suffix isn't relevant since Tailwind isn't being touched.

🤖 Generated with Claude Code

- Bump next from ^14.2 to ^16.2.4 (resolved 16.2.6)
- Bump @policyengine/ui-kit from ^0.8.0 to ^0.9.0
- Add turbopack.root to next.config.js to silence stray-lockfile warning

React 19 and Tailwind 4 already in place. Static export, data pipeline,
and all public/data CSVs preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
snap-bbce-repeal Ready Ready Preview, Comment May 9, 2026 4:08pm

Request Review

@policyengine policyengine Bot added the ⚙️ Engineering... PolicyEngine's GitHub agent is working on this label May 9, 2026
@MaxGhenis MaxGhenis merged commit cf4cb46 into main May 9, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the upgrade-next-16 branch May 9, 2026 16:08
Copy link
Copy Markdown

@policyengine policyengine Bot left a comment

Choose a reason for hiding this comment

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

Clean upgrade to Next.js 16. Verified that:

  • Package versions match the PR description (next ^16.2.4, ui-kit ^0.9.0)
  • Static export configuration is preserved (output: 'export' and images.unoptimized retained)
  • The turbopack.root addition properly points to __dirname to silence stray-lockfile warnings
  • Lockfile shows proper dependency resolution with Next 16-specific packages (sharp, baseline-browser-mapping, updated SWC binaries)
  • No application code or workflow changes
  • CI workflow includes bun run build which will validate the upgrade

The changes align with the stated goals and preservation guarantees. Ready to merge once CI passes.

@policyengine policyengine Bot removed the ⚙️ Engineering... PolicyEngine's GitHub agent is working on this label May 9, 2026
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