Configure Next.js 16 compatibility: Node.js 20 and TypeScript settings - #106
Merged
dcotelo merged 2 commits intoFeb 9, 2026
Merged
Conversation
Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
Deploying chartimpact with
|
| Latest commit: |
eec9335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://583cf5d5.chartimpact.pages.dev |
| Branch Preview URL: | https://copilot-sub-pr-104-again.chartimpact.pages.dev |
|
Copilot
AI
changed the title
[WIP] Upgrade next dependency from 15.5.10 to 16.1.5
Configure Next.js 16 compatibility: Node.js 20 and TypeScript settings
Feb 9, 2026
dcotelo
marked this pull request as ready for review
February 9, 2026 20:37
dcotelo
merged commit Feb 9, 2026
2b1f471
into
snyk-fix-8d156fcd1018c01abb3a73b896c7eb50
12 checks passed
dcotelo
added a commit
that referenced
this pull request
Feb 9, 2026
* fix: frontend/package.json & frontend/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-NEXT-15105315 * Update Node.js to v20 and fix lint command for Next.js 16 compatibility (#105) * Initial plan * Update Node.js version to 20 for Next.js 16 compatibility Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Fix lint command for Next.js 16 - use ESLint directly Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Use modern glob pattern for ESLint command Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Update Node.js to v20 for Cloudflare Pages deployment Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> * Configure Next.js 16 compatibility: Node.js 20 and TypeScript settings (#106) * Initial plan * Update tsconfig.json for Next.js 16 compatibility Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com> --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Next.js 16.1.5 requires Node.js >=20.9.0. The CI pipeline and deployment configurations were using Node.js 18, causing build failures.
Changes
.node-versionto 20 for Cloudflare Pagesjsxcompiler option from"preserve"to"react-jsx"(mandatory for Next.js 16) and added.next/dev/types/**/*.tsto includesnext lintwith direct ESLint invocation for compatibilityThe tsconfig.json change is critical - Next.js 16 uses React's automatic JSX runtime and will fail builds without
react-jsx.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.