Skip to content

Configure Next.js 16 compatibility: Node.js 20 and TypeScript settings - #106

Merged
dcotelo merged 2 commits into
snyk-fix-8d156fcd1018c01abb3a73b896c7eb50from
copilot/sub-pr-104-again
Feb 9, 2026
Merged

dcotelo merged 2 commits into
snyk-fix-8d156fcd1018c01abb3a73b896c7eb50from
copilot/sub-pr-104-again

Conversation

Copilot AI commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

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

  • CI/CD workflows: Updated all GitHub Actions workflows to use Node.js 20
  • Deployment config: Updated .node-version to 20 for Cloudflare Pages
  • TypeScript: Changed jsx compiler option from "preserve" to "react-jsx" (mandatory for Next.js 16) and added .next/dev/types/**/*.ts to includes
  • Lint script: Replaced next lint with direct ESLint invocation for compatibility
  • Package requirements: Updated engines to require Node.js >=20.9.0

The 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.

Co-authored-by: dcotelo <50673035+dcotelo@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 9, 2026 •

Copy link
Copy Markdown

Deploying chartimpact with  Cloudflare Pages  Cloudflare Pages

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

View logs

@sonarqubecloud

sonarqubecloud Bot commented Feb 9, 2026

Copy link
Copy Markdown

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
Copilot AI requested a review from dcotelo February 9, 2026 20:35
@dcotelo
dcotelo marked this pull request as ready for review February 9, 2026 20:37
@dcotelo
dcotelo merged commit 2b1f471 into snyk-fix-8d156fcd1018c01abb3a73b896c7eb50 Feb 9, 2026
12 checks passed
@dcotelo
dcotelo deleted the copilot/sub-pr-104-again branch February 9, 2026 20:37
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>
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.

2 participants