File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import dynamic from "next/dynamic" ;
2- const Antigravity = dynamic (
3- ( ) => import ( "../../components/homepage/antigravity" ) ,
4- { ssr : false } ,
5- ) ;
1+ import Antigravity from "../../components/homepage/antigravity-client" ;
62import type { Metadata } from "next" ;
73import { SITE_HOME_DESCRIPTION , SITE_HOME_TITLE } from "@/lib/site-metadata" ;
84import { Button } from "@prisma/eclipse" ;
Original file line number Diff line number Diff line change 1+ "use client" ;
2+
3+ import dynamic from "next/dynamic" ;
4+
5+ // Lazy-load the particle animation component client-side only.
6+ // next/dynamic with ssr:false cannot be called from a Server Component — it
7+ // must live in a "use client" module. This thin wrapper follows the same
8+ // pattern used by masonry-client.tsx.
9+ const Antigravity = dynamic ( ( ) => import ( "./antigravity" ) , { ssr : false } ) ;
10+
11+ export default Antigravity ;
You can’t perform that action at this time.
0 commit comments