import { Footer } from '@/components/chrome/Footer'; import { Header } from '@/components/chrome/Header'; import { apiTry } from '@/lib/api'; import { LiveProvider } from '@/lib/live'; import type { GlobalPressure, Ticker } from '@/lib/types'; export const dynamic = 'force-dynamic'; /** Public chrome. One SSE connection per page lives here; the initial state is the SSR value from the same API. */ export default async function SiteLayout({ children }: { children: React.ReactNode }) { const [global, ticker] = await Promise.all([apiTry('/api/v1/pressure/global'), apiTry('/api/v1/ticker')]); return (
{children}