AuthCodeHandler component gewrapped in een Suspense boundary. Dit is vereist omdat useSearchParams() dynamische data gebruikt en Next.js de pagina statisch probeert te genereren
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
|
import { Suspense } from 'react'
|
||||||
import { getContent } from '@/lib/content/loader'
|
import { getContent } from '@/lib/content/loader'
|
||||||
import type { MetadataContent } from '@/content/schemas/manifesto'
|
import type { MetadataContent } from '@/content/schemas/manifesto'
|
||||||
import { HeroSectionClient } from './components/hero-section-client'
|
import { HeroSectionClient } from './components/hero-section-client'
|
||||||
@@ -136,7 +137,9 @@ export default async function HomePage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Handle auth codes that Supabase redirects to home page */}
|
{/* Handle auth codes that Supabase redirects to home page */}
|
||||||
<AuthCodeHandler />
|
<Suspense fallback={null}>
|
||||||
|
<AuthCodeHandler />
|
||||||
|
</Suspense>
|
||||||
|
|
||||||
{/* Hero Section */}
|
{/* Hero Section */}
|
||||||
<HeroSectionClient
|
<HeroSectionClient
|
||||||
|
|||||||
Reference in New Issue
Block a user