File
Source file: app/layout.tsx.
Global HTML shell, metadata, font, and pre-hydration theme bootstrap script.
app/layout.tsxResponsibilities
This file owns the following project behavior.
- Set document language and metadata.
- Load global CSS.
- Apply theme and primary color before hydration.
- Use suppressHydrationWarning for intentional pre-hydration root mutations.
Change risks
Review these risks before editing this file.
- Removing the bootstrap script can cause theme flicker.
- Changing localStorage keys here must match AppShell.
- Removing suppressHydrationWarning can reintroduce hydration warnings.
- Run TypeScript and production build after changes.
- Smoke test affected routes after deployment.