import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import { ThemeProvider } from "@/components/layout"; import { AuthProvider } from "@/lib/auth-context"; import { ModelSelectionProvider } from "@/contexts/model-selection-context"; import { ErrorBoundary } from "@/components/ui/error-boundary"; import "@/lib/error-handlers"; import "@/lib/memory-utils"; const inter = Inter({ subsets: ["latin"], variable: "--font-sans", }); export const metadata: Metadata = { title: "Stable Diffusion REST - Web UI", description: "Modern web interface for Stable Diffusion image generation", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {/* Load server configuration - this is dynamically generated by the server */} {/* Load synchronously to ensure config is available before React hydration */} {children} ); }