From ea9ce29ed253b7771b0481ce68399ea25e36eaaf Mon Sep 17 00:00:00 2001 From: g-but <41178744+g-but@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:04:02 +0100 Subject: [PATCH] fix(ssr): remove ssr:false dynamic import causing profile page streaming failure The ProfilePageClient used dynamic(() => import('ProfileLayout'), { ssr: false }) which triggered BAILOUT_TO_CLIENT_SIDE_RENDERING. This created a nested template boundary inside the Suspense streaming boundary, preventing $RV from resolving the streamed content. Data is already fetched server-side, so ssr:false provided no benefit. Co-Authored-By: Claude Opus 4.6 --- src/components/profile/ProfilePageClient.tsx | 25 ++------------------ 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/components/profile/ProfilePageClient.tsx b/src/components/profile/ProfilePageClient.tsx index 57f394859..079b89155 100644 --- a/src/components/profile/ProfilePageClient.tsx +++ b/src/components/profile/ProfilePageClient.tsx @@ -1,21 +1,7 @@ 'use client'; -import dynamic from 'next/dynamic'; import { ScalableProfile, Project } from '@/types/database'; - -// Dynamic import to keep initial payload small and preserve a skeleton -const ProfileLayout = dynamic(() => import('@/components/profile/ProfileLayout'), { - ssr: false, - loading: () => ( -
-
-
-
-
-
-
- ), -}); +import ProfileLayout from '@/components/profile/ProfileLayout'; interface ProfilePageClientProps { profile: ScalableProfile; @@ -38,12 +24,5 @@ interface ProfilePageClientProps { } export default function ProfilePageClient({ profile, projects, stats }: ProfilePageClientProps) { - return ( - - ); + return ; } -