hero
This commit is contained in:
parent
61f36999b7
commit
36d3506c75
1 changed files with 4 additions and 2 deletions
|
|
@ -13,10 +13,12 @@ import { generateMeta } from '@/utilities/generateMeta'
|
|||
import PageClient from './page.client'
|
||||
import { LivePreviewListener } from '@/components/LivePreviewListener'
|
||||
|
||||
// ADD these two lines after the LivePreviewListener import:
|
||||
|
||||
import HeroBackground from '@/components/HeroBackground'
|
||||
import HeroPage from '@/components/HeroPage'
|
||||
|
||||
export const revalidate = 0
|
||||
|
||||
export async function generateStaticParams() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
const pages = await payload.find({
|
||||
|
|
@ -70,7 +72,7 @@ export default async function Page({ params: paramsPromise }: Args) {
|
|||
|
||||
const { hero, layout } = page
|
||||
|
||||
// REPLACE WITH:
|
||||
|
||||
if (decodedSlug === 'home') {
|
||||
return <HeroPage />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue