import type { Metadata } from "next"; import { headers } from "next/headers"; import "./globals.css"; import { QueryProvider } from "@/lib/providers"; import { SessionTimeoutWarning } from "@/features/auth/components/SessionTimeoutWarning"; export const metadata: Metadata = { title: "Assist Solutions Portal", description: "Manage your subscriptions, billing, and support with Assist Solutions", }; // Disable static generation for the entire app since it uses dynamic features extensively // This is the recommended approach for apps with heavy useSearchParams usage export const dynamic = "force-dynamic"; export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { // Get nonce from proxy.ts for CSP-compliant inline scripts const headersList = await headers(); const nonce = headersList.get("x-nonce") || undefined; return (