Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
For now, it's impossible to override search collection labels (without overriding the return value of searchPlugin(...)).
It's need to work out of the box
Link to reproduction
No response
Payload Version
3.0.0-bea.86
Node Version
20.12
Next.js Version
15.0.0
Describe the Bug
For now, it's impossible to override search collection labels (without overriding the return value of
searchPlugin(...)
). It's need to work out of the boxLink to line in the plugin config generation: https://github.com/payloadcms/payload/blob/3a91deb0a4fde9550cfa9b6eeeedfc5062598da3/packages/plugin-search/src/Search/index.ts#L47
Lines of code need to be placed on top of the config (before user overrides): https://github.com/payloadcms/payload/blob/3a91deb0a4fde9550cfa9b6eeeedfc5062598da3/packages/plugin-search/src/Search/index.ts#L70
Reproduction Steps
Adapters and Plugins
plugin-search