Skip to content

fix(cli): update Next.js templates to 16.2#978

Merged
AmanVarshney01 merged 2 commits intomainfrom
aman/next-16-2
Mar 18, 2026
Merged

fix(cli): update Next.js templates to 16.2#978
AmanVarshney01 merged 2 commits intomainfrom
aman/next-16-2

Conversation

@AmanVarshney01
Copy link
Owner

@AmanVarshney01 AmanVarshney01 commented Mar 18, 2026

Summary

  • bump generated Next.js projects and the docs app to 16.2.0
  • update the Next app tsconfig template to match Next 16.2's expected TypeScript config
  • regenerate embedded templates and refresh the lockfile

Why

I checked the official Next.js 16.2 release notes and then manually scaffolded fresh Next projects to verify compatibility. The version bump itself was fine, but fresh 16.2 apps were auto-rewriting the generated apps/web/tsconfig.json on first build. This PR bakes those TypeScript settings into the template so new projects start clean.

Verification

  • bun run check
  • cd apps/web && bun run build
  • cd apps/web && bunx tsc --noEmit
  • manual scaffold smoke tests:
    • next + self + none: bun install, bun run build, bun run check-types
    • next + self + better-auth: bun install, bun run build, bun run check-types
    • next + hono + better-auth: bun install, bun run build, bun run check-types

Summary by CodeRabbit

  • Dependencies

    • Updated Next.js and related build tools to the latest versions for improved stability and performance.
  • Compatibility

    • Enhanced support for newer React JSX transform conventions and framework configurations.

@vercel
Copy link

vercel bot commented Mar 18, 2026

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, Comment Mar 18, 2026 10:52pm

Request Review

@AmanVarshney01 AmanVarshney01 changed the title chore(cli): update Next.js templates to 16.2 fix(cli): update Next.js templates to 16.2 Mar 18, 2026
@AmanVarshney01 AmanVarshney01 enabled auto-merge (squash) March 18, 2026 22:52
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 18, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7aa3b1b9-3710-46c5-8f25-cf575564310c

📥 Commits

Reviewing files that changed from the base of the PR and between b23dd72 and 9288076.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • apps/web/package.json
  • packages/template-generator/src/templates.generated.ts
  • packages/template-generator/src/utils/add-deps.ts
  • packages/template-generator/templates/frontend/react/next/package.json.hbs
  • packages/template-generator/templates/frontend/react/next/tsconfig.json.hbs

Walkthrough

Version bumps for Next.js dependency from ^16.1.x to ^16.2.0 across multiple package files and configuration updates. TypeScript JSX configuration updated from "preserve" to "react-jsx" in template configuration. Template include paths updated to support newer development type patterns.

Changes

Cohort / File(s) Summary
Next.js Dependency Updates
apps/web/package.json, packages/template-generator/templates/frontend/react/next/package.json.hbs, packages/template-generator/src/utils/add-deps.ts
Next.js dependency version bumped from ^16.1.x to ^16.2.0 across web application and template packages.
TypeScript Configuration Updates
packages/template-generator/templates/frontend/react/next/tsconfig.json.hbs
JSX runtime changed from "preserve" to "react-jsx"; include glob paths updated to normalize path syntax and add support for .next/dev/types/**/*.ts.
Generated Templates
packages/template-generator/src/templates.generated.ts
Template configurations and framework-specific layouts updated for dependency versions and React JSX transform conventions; theme providers and auth handling components integrated.

Possibly related PRs

📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

@AmanVarshney01 AmanVarshney01 merged commit 3fc9160 into main Mar 18, 2026
3 checks passed
@AmanVarshney01 AmanVarshney01 deleted the aman/next-16-2 branch March 18, 2026 22:53
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