chore(payload,ui)!:update custom config to separate client and server bundles (#5914)

This commit is contained in:
Paul
2024-04-19 11:52:55 -03:00
committed by GitHub
parent 2ee6a8ec3a
commit 23c5b71f95
27 changed files with 290 additions and 53 deletions

View File

@@ -55,6 +55,12 @@ export const createClientGlobalConfig = ({
}
})
if ('custom' in sanitized && sanitized.custom) {
if ('server' in sanitized.custom && sanitized.custom.server) {
delete sanitized.custom.server
}
}
if ('admin' in sanitized) {
sanitized.admin = { ...sanitized.admin }