payloadcms / payloadcms/payload

Bug: @payloadcms/plugin-multi-tenant causes 404 with Next.js 16.2.3 + Turbopack

Open
#16,286 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: multi-tenant stale
Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

The @payloadcms/plugin-multi-tenant plugin causes a 404 error when navigating to tenant-enabled collections in the admin panel when using Next.js 16.2.3 with Turbopack.

Link to the code that reproduces this issue

https://github.com/metageeks-tech/payloadcms-testcms.git

Reproduction Steps
  1. Create a new Payload project with Next.js 16.2.3
  2. Install @payloadcms/plugin-multi-tenant@3.82.1
  3. Configure the plugin with collections enabled
  4. Navigate to /admin/collections/posts or any tenant-enabled collection
  5. Result: 404 error page
Which area(s) are affected?

plugin: multi-tenant

Environment Info
Next.js: 16.2.3 (with Turbopack)
Payload: 3.82.1
@payloadcms/plugin-multi-tenant: 3.82.1 (also tested 3.83.0-canary.3)

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.

Research direction

Clone the linked payloadcms-testcms reproduction and first reproduce the 404 at /admin/collections/posts using Next.js 16.2.3 with Turbopack and @payloadcms/plugin-multi-tenant. Trace the tenant-enabled collection route through the multi-tenant plugin and compare behavior without the plugin; done means the affected admin collection routes load instead of returning 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.