-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to Next.js 16 with Turbopack #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: nwalters512 <[email protected]>
Co-authored-by: nwalters512 <[email protected]>
Co-authored-by: nwalters512 <[email protected]>
Co-authored-by: nwalters512 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the project from Next.js 15 to Next.js 16, including major dependency updates and modernized configuration files. Key changes include upgrading to ESLint flat config format, enabling Turbopack mode, and updating TypeScript compiler settings for Next.js 16 compatibility.
- Upgraded Next.js from v15.1.7 to v16.0.1
- Migrated from legacy
.eslintrcto moderneslint.config.mjsflat config - Updated TypeScript configuration with Next.js 16 recommended settings
Reviewed Changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updated dependency versions including Next.js, ESLint, TypeScript, and numerous supporting packages |
| package.json | Updated scripts to use Turbo mode, bumped major dependencies (Next.js, ESLint, TypeScript) |
| tsconfig.json | Changed target to ES2020, moduleResolution to "bundler", jsx to "react-jsx", added path aliases |
| next.config.ts | Created new TypeScript configuration file for Next.js 16 |
| next-env.d.ts | Added reference to routes type definitions |
| eslint.config.mjs | Created new ESLint flat config replacing .eslintrc |
| .eslintrc | Removed legacy ESLint configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: nwalters512 <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. |
|
@copilot since Next no longer runs linting during build, can you add a GitHub Actions workflow to run linting? |
Co-authored-by: nwalters512 <[email protected]>
Upgrades all dependencies to latest versions and enables Turbopack for faster builds.
Major Changes
--turboflageslint.config.mjs)Configuration Updates
.eslintrctoeslint.config.mjs(required by ESLint 9+)tsconfig.json:moduleResolution: "bundler",jsx: "react-jsx"next lintcommand (removed in v16) witheslintdirectly@eslint/eslintrcdependency (not needed with flat config)Other Dependencies
CI/CD
A new GitHub Actions workflow (
.github/workflows/lint.yml) has been added to run TypeScript type checking and linting on all pushes and pull requests to main, ensuring code quality checks continue to run automatically.Example Usage
Both commands now use the
--turboflag to leverage Next.js's Rust-based bundler for improved performance.Note
Next.js 16 works without a configuration file when no custom configuration is needed, so
next.config.tswas not created.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.