payloadcms / payloadcms/payload

Performance degradation in Payload after upgrading Next.js

Open
#14,487 11 comments 16 reactions 1 assignee View on GitHub

@AlessioGr is already working on this.

Since Nov 5, 2025.

Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

After upgrading Next.js in our project, the overall performance of Payload has significantly degraded (e.g., response times are much slower). Downgrading Next.js restores performance.
This issue can be reproduced using the Payload multi-tenant example by upgrading Next.js to the version mentioned below or newer.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/tree/main/examples/multi-tenant

Reproduction Steps
  1. Clone the multi-tenant example from the Payload repo.
  2. Upgrade Next.js from 15.2.3 → 15.5.4 (or newer).
  3. Start the project and log in.
  4. Interact with the admin panel and API endpoints.
  5. Observe that response times and overall performance are significantly slower compared to the previous Next.js version.
Which area(s) are affected? (Select all that apply)

area: core

Environment Info
- payload: 3.59.1
- next: 15.5.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.