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:
colinislit
2025-11-19 13:51:19 +01:00
parent 4f5d99717b
commit a5bb1c7d8e

View File

@@ -13,6 +13,7 @@
*/
import type { Metadata } from 'next'
import { Suspense } from 'react'
import { getContent } from '@/lib/content/loader'
import type { MetadataContent } from '@/content/schemas/manifesto'
import { HeroSectionClient } from './components/hero-section-client'
@@ -136,7 +137,9 @@ export default async function HomePage() {
return (
<>
{/* Handle auth codes that Supabase redirects to home page */}
<AuthCodeHandler />
<Suspense fallback={null}>
<AuthCodeHandler />
</Suspense>
{/* Hero Section */}
<HeroSectionClient