fix: add missing auth property to new defaults function (#11561)
https://github.com/payloadcms/payload/pull/10794 added new defaults the config - however, these were only added to the deprecated `defaults` object, which caused our CI to fail. This PR adds them to the new `addDefaultsToConfig` function
This commit is contained in:
@@ -152,5 +152,10 @@ export const addDefaultsToConfig = (config: Config): Config => {
|
||||
}
|
||||
config.upload = config.upload ?? {}
|
||||
|
||||
config.auth = {
|
||||
jwtOrder: ['JWT', 'Bearer', 'cookie'],
|
||||
...(config.auth || {}),
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user