Skip to content

feat(template-generator): upgrade Next.js to 16.3 - #1141

Merged
AmanVarshney01 merged 1 commit into
mainfrom
aman/upgrade-nextjs-16-3
Aug 5, 2026
Merged

AmanVarshney01 merged 1 commit into
mainfrom
aman/upgrade-nextjs-16-3

Conversation

@AmanVarshney01

@AmanVarshney01 AmanVarshney01 commented Aug 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • upgrade the repository web app and generated Next.js template from 16.2.12 to 16.3.0
  • align eslint-config-next, the lockfile, and generated dependency metadata with Next.js 16.3
  • remove the Turbopack filesystem-cache flag that is enabled by default in Next.js 16.3
  • add the version-matched Next.js agent guidance to the repository app and generated template
  • add Bun test types required by the upgraded production-build type-check

Verification

  • bun run test:complete — full monorepo check and build, 867 tests across 40 files, 0 failures, and the complete 282-case template smoke matrix
  • Next.js production build — 67 pages generated
  • generated Next.js sample — install, type-check, and production build passed
  • browser smoke test — home, builder URL state, and docs navigation passed without console or server errors
  • git diff --check
  • focused existing Next.js/self-backend generation test after review cleanup — 1 passed

Docs checked

Summary by CodeRabbit

  • New Features

    • Added guidance documentation for working with Next.js projects and generated templates.
    • Added Bun type support for improved TypeScript development.
  • Updates

    • Upgraded Next.js and its linting configuration to version 16.3.0.
    • Updated generated React/Next.js projects to use the latest Next.js version.
  • Developer Experience

    • Simplified local development configuration by removing an experimental file-system cache setting.

@vercel

vercel Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
create-better-t-stack-web Ready Ready Preview Aug 5, 2026 4:43pm

Request Review

@AmanVarshney01
AmanVarshney01 force-pushed the aman/upgrade-nextjs-16-3 branch from cf89822 to c1f558e Compare August 5, 2026 14:52
@AmanVarshney01 AmanVarshney01 changed the title chore(next): upgrade to 16.3.0 feat(next): upgrade to 16.3.0 Aug 5, 2026
@AmanVarshney01
AmanVarshney01 force-pushed the aman/upgrade-nextjs-16-3 branch from c1f558e to e1810dc Compare August 5, 2026 15:05
@AmanVarshney01 AmanVarshney01 changed the title feat(next): upgrade to 16.3.0 feat(template-generator): upgrade Next.js to 16.3 Aug 5, 2026
@AmanVarshney01
AmanVarshney01 marked this pull request as ready for review August 5, 2026 15:05
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The PR upgrades Next.js to 16.3.0 in the web app and generated templates. It adds generated Next.js guidance, removes the Turbopack filesystem cache setting, and adds Bun type definitions.

Changes

Next.js 16.3 upgrade

Layer / File(s) Summary
Template version and generated guidance
packages/template-generator/src/utils/add-deps.ts, packages/template-generator/templates/frontend/react/next/*
The generated Next.js template now uses ^16.3.0 and includes the Next.js agent-rules block.
Web application alignment
apps/web/package.json, apps/web/tsconfig.json, apps/web/next.config.ts, apps/web/AGENTS.md
The web app now uses Next.js 16.3.0 and matching ESLint configuration. It adds Bun types, includes the generated guidance, and removes the Turbopack filesystem cache setting.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: upgrading Next.js to version 16.3 in the template generator.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f05b085e-3df5-4854-bca6-518f5153bd9f

📥 Commits

Reviewing files that changed from the base of the PR and between 8eee528 and e1810dc.

⛔ Files ignored due to path filters (2)
  • bun.lock is excluded by !**/*.lock
  • packages/template-generator/src/templates.generated.ts is excluded by !**/*.generated.*
📒 Files selected for processing (8)
  • apps/cli/test/frontend.test.ts
  • apps/web/AGENTS.md
  • apps/web/next.config.ts
  • apps/web/package.json
  • apps/web/tsconfig.json
  • packages/template-generator/src/utils/add-deps.ts
  • packages/template-generator/templates/frontend/react/next/AGENTS.md.hbs
  • packages/template-generator/templates/frontend/react/next/package.json.hbs
💤 Files with no reviewable changes (1)
  • apps/web/next.config.ts

Comment thread apps/cli/test/frontend.test.ts Outdated
Comment on lines +587 to +588
expect(agentRules).toContain("<!-- BEGIN:nextjs-agent-rules -->");
expect(agentRules).toContain("node_modules/next/dist/docs/");

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Assert the generated-file instruction.

The test passes if AGENTS.md loses the instruction that next dev regenerates this block. Assert node_modules/next/dist/server/lib/generate-agent-files.js so the baseline covers that required guidance.

Based on learnings: next dev regenerates this block, and node_modules/next/dist/server/lib/generate-agent-files.js is the canonical source.

Proposed test update
       expect(agentRules).toContain("<!-- BEGIN:nextjs-agent-rules -->");
       expect(agentRules).toContain("node_modules/next/dist/docs/");
+      expect(agentRules).toContain(
+        "node_modules/next/dist/server/lib/generate-agent-files.js",
+      );
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
expect(agentRules).toContain("<!-- BEGIN:nextjs-agent-rules -->");
expect(agentRules).toContain("node_modules/next/dist/docs/");
expect(agentRules).toContain("<!-- BEGIN:nextjs-agent-rules -->");
expect(agentRules).toContain("node_modules/next/dist/docs/");
expect(agentRules).toContain(
"node_modules/next/dist/server/lib/generate-agent-files.js",
);

Source: Learnings

@AmanVarshney01
AmanVarshney01 force-pushed the aman/upgrade-nextjs-16-3 branch from e1810dc to 3166707 Compare August 5, 2026 16:43
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@AmanVarshney01
AmanVarshney01 merged commit ff23935 into main Aug 5, 2026
3 checks passed
@AmanVarshney01
AmanVarshney01 deleted the aman/upgrade-nextjs-16-3 branch August 5, 2026 16:47

This branch was successfully deployed

1 active deployment
Preview — 31667073 Deployed Aug 5, 2026 by vercel[bot]
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