feat: manage skyline background media via payload
This commit is contained in:
@@ -77,7 +77,7 @@ export default async function Page({ params }: Args) {
|
||||
const [header, footer, siteSettings, route, preistraeger, events, posts] = await Promise.all([
|
||||
payload.findGlobal({ slug: 'header', depth: 1 }).catch(() => undefined),
|
||||
payload.findGlobal({ slug: 'footer', depth: 1 }).catch(() => undefined),
|
||||
payload.findGlobal({ slug: 'site-settings', depth: 0 }).catch(() => undefined),
|
||||
payload.findGlobal({ slug: 'site-settings', depth: 1 }).catch(() => undefined),
|
||||
findRouteDoc(payload, pathname, draft),
|
||||
findList(payload, 'preistraeger', draft).catch(() => []),
|
||||
findList(payload, 'events', draft).catch(() => []),
|
||||
|
||||
Reference in New Issue
Block a user