Configuration
Via the configuration file and/or a custom middleware.
Configuration file
The package can be globally configured via config/inertia.py
configuration file.
Variable | Description |
---|---|
| Absolute path to mix-manifest.json location. It's needed for computing js assets version. Default: |
| Global root template view used by your Inertia Controllers to render the page. Specify the name of the view without Default: |
| Include server-side routes as JSON payload in Inertia response (as a prop). See routing. Default: |
Overriding Middleware
The `InertiaMiddleware` can be overriden to define the root view and the way assets version is computed. You just have to create a middleware in your app inheriting from the `InertiaMiddleware` class.
Then include this middleware in the HTTP middleware instead of the original one.
Last updated