Open
Description
Describe the Bug
If next/link component is used in (frontend)/layout or (frontend)/page, admin panel bundle is loaded on / route.
Introduced in beta 128, probably by #8364
Workaround: move (payload)/layout into (payload)/admin/layout
Link to the code that reproduces this issue
https://github.com/Arctomachine/payload-127
Reproduction Steps
- Install packages (beta 127)
- Build, start. Check network tab for loaded js files
- Migrate to beta 128 by guide in feat!: on demand rsc #8364
- Build, start. Check network tab for loaded js (should load at least 3 new big files)
Which area(s) are affected? (Select all that apply)
Not sure, area: core, area: ui
Environment Info
Binaries:
Node: 20.17.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
payload: 3.7.0
next: 15.1.0
@payloadcms/db-mongodb: 3.7.0
@payloadcms/email-nodemailer: 3.7.0
@payloadcms/graphql: 3.7.0
@payloadcms/next/utilities: 3.7.0
@payloadcms/payload-cloud: 3.7.0
@payloadcms/plugin-seo: 3.7.0
@payloadcms/richtext-lexical: 3.7.0
@payloadcms/richtext-slate: 3.7.0
@payloadcms/translations: 3.7.0
@payloadcms/ui/shared: 3.7.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Available memory (MB): 32720
Available CPU cores: 12