Skip to content

feat!: upgrade to next 16#793

Draft
MikaelSiidorow wants to merge 2 commits intomainfrom
next-16
Draft

feat!: upgrade to next 16#793
MikaelSiidorow wants to merge 2 commits intomainfrom
next-16

Conversation

@MikaelSiidorow
Copy link
Collaborator

@MikaelSiidorow MikaelSiidorow commented Feb 3, 2026

Description

Upgrade Next.js from 15.5.9 to 16.1.6 and related dependencies.

Changes

  • Next.js 15.5.9 → 16.1.6 (Turbopack now default bundler)
  • React 19.2.3 → 19.2.4
  • PayloadCMS ^3.55.1 → ^3.72.0 (required for Next.js 16 compatibility)
  • middleware.ts → proxy.ts — Next.js 16 renames middleware to proxy to clarify its network boundary role
  • Removed --turbopack flags from scripts (Turbopack is default in v16)
  • Removed eslint config from next.config.mjs (no longer supported in v16)
  • Enabled Turbopack filesystem caching for dev (turbopackFileSystemCacheForDev)
  • Guard generateImageMetadata against undefined params during build (Next.js 16 probes route structure with undefined params in the "collecting page data" phase)
  • Restored catalog: references for react/react-dom/@types that the codemod pinned to exact versions

Peer dependency warnings (non-blocking)

  • react-moment, react-live-clock, @tietokilta/ilmomasiina-client declare react@^18 peer but work with React 19

Before submitting the PR, please make sure you do the following

  • If your PR is related to a previously discussed issue, please link to it here.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.
  • Make sure the commit history is linear, up-to-date with main branch and does not contain any erroneous changes

Formatting and linting

  • Format code with pnpm format and lint the project with pnpm lint

@MikaelSiidorow MikaelSiidorow force-pushed the next-16 branch 2 times, most recently from 414ab59 to a9e2003 Compare February 4, 2026 05:50
MikaelSiidorow and others added 2 commits February 4, 2026 08:31
- Next.js 15.5.9 → 16.1.6 (Turbopack now default)
- React 19.2.3 → 19.2.4
- PayloadCMS 3.55.1 → 3.72.0+ (required for Next.js 16 compat)
- Rename middleware.ts → proxy.ts (Next.js 16 convention)
- Remove --turbopack flags from scripts (default in v16)
- Remove eslint config from next.config.mjs (no longer supported)
- Guard generateImageMetadata against undefined params during build
- Restore catalog references broken by codemod

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.

1 participant