I want to use the payload config to configure stuff. How can I access the 'custom' prop of the builConfig within my plugins?
e.g. I want to set a custom bool in my buildConfig:
custom: {
mediaDatePrefix: false,
},
and read that config within my plugin. Is that possible?
if ((await payloadConfig).custom.mediaDatePrefix) {
}
figured it out!
Hey
@1085968471193567362, just double checking here - you were able to find a solution?
Yep, thanks!
Star
Discord
online
Get dedicated engineering support directly from the Payload team.