diff --git a/components/dashboard/DashboardShell.tsx b/components/dashboard/DashboardShell.tsx index 4f744c6..d319ef0 100644 --- a/components/dashboard/DashboardShell.tsx +++ b/components/dashboard/DashboardShell.tsx @@ -4,8 +4,18 @@ import { useState, useCallback } from 'react' import dynamic from 'next/dynamic' import ContentHeader from './ContentHeader' -// Load sidebar only on the client — prevents any SSR flash of text/labels -const Sidebar = dynamic(() => import('./Sidebar'), { ssr: false }) +// Load sidebar only on the client — prevents SSR flash +const Sidebar = dynamic(() => import('./Sidebar'), { + ssr: false, + // Placeholder reserves the sidebar's space in the server HTML + // so page content never occupies the sidebar zone + loading: () => ( +
+ ), +}) export default function DashboardShell({ siteId,