The root _layout.tsx can configure app-wide behavior. It is still a layout, but it may also export extra values for fonts, manifest, theme, realtime connection, analytics, and mobile-style rendering.
fonts
Registers app-wide fonts so pages can use them consistently.
manifest
Defines the web app manifest used for installable/PWA-like behavior.
theme
Chooses the default theme policy, such as dark, light, system, or css.
reconnect
Controls whether the client tries to reconnect to realtime runtime channels.
wsConnect
Controls whether the browser connects the client WebSocket runtime after load. The default is true. If false, message/pubsub calls warn in the browser console until fetch.instance.connect() is called.
layoutStyle
Switches the outer page container style. Use mobile for app-like mobile shells.
pageConfig
Optional layout-level frame override inherited by child pages. Page-level pageConfig still wins for explicitly declared fields.
gaTrackingId
Adds Google Analytics tracking for the app.