Hi. i am using next custom server and i have just add redirect plugin and in next.js i am just want to fetch the collection record of redirects and in production mode its working fine but foe build mode its not working, giving error that no collection found. please someone can help me on this
Redirect plugin issue with custom next js server
Good morning - can we check out your redirects collection config?
its directly created by redirect plugin
Hmm,
@808734492645785600was the last person to touch this plugin, perhaps they can provide some info!
Could you please look into this
can you show how you’re calling the plugin in your Payload config?
you need to remove
redirects
from the
collections
array in your plugin config, that will likely fix your issue 👍
the plugin instantiates that collection for you, and so you are referencing a collection that does not yet exist
issue is that actually its working fine in production mode but in build mode its not working giving error
Star
Discord
online
Get dedicated engineering support directly from the Payload team.