Configuration
InertiaOptions, Vite, SSR, props, state and the middleware and result API.
On this page
Core configuration is passed to AddInertia; error page options use AddInertiaErrorPages. Options marked “Development only” do nothing in other environments.
AddInertia(o => ...): InertiaOptions
o.Pagination: PaginationOptions
o.Vite: ViteOptions
o.Ssr: SsrOptions
Ssr.ConnectTimeout bounds connection establishment separately from the rendering deadline and defaults to five seconds; use a positive supported duration or Timeout.InfiniteTimeSpan.
Per response: Render(...).WithSsr(SsrMode) and .WithoutSsr(). The full SSR options are in Server-side rendering.
o.Props: InertiaPropsOptions
o.State: InertiaStateOptions
AddInertiaErrorPages(o => ...): InertiaErrorPagesOptions
See Error pages for setup, shared props and existing exception middleware.
Middleware and endpoint API
Extension points
IInertiaRootView, IInertiaStateStore, ViteAssets, InertiaRequest (parsed headers), InertiaHeaders (header name constants), InertiaSsrException, InertiaSsr.HttpClientName (the SSR HTTP client) and InertiaDiagnostics (meter and activity source names).
Name collisions
The package imports Inertia.Net and static members of Inertia.Net.Inertia when implicit usings are enabled. If a name such as Location collides with a type, use Inertia.Net.Inertia.Location(url). To manage imports yourself, set <InertiaNetImplicitUsings>false</InertiaNetImplicitUsings> in the project and add using Inertia.Net; and using static Inertia.Net.Inertia; where needed.
InertiaPropJsonConverter, InertiaSsrHealthCheck, InertiaCacheEntryKind, InertiaCacheEntryOptions, InertiaPagesOptions, InertiaPrecognition.IsPrecognitive(...) and InertiaPrecognitionMetadata are public APIs for serialization, health checks, cache stores, page checks and precognitive request handling.