Skip to main content
Use the Elysia adapter to inject an inertia helper into route context.

Import

Basic setup

Remember to configure your helpers according to the installation guide installation

Setup with flash/session support

If you use inertia.flash(...) or inertia.errors(...), provide a flash adapter. Your session implementation may vary, in the example we are using a pseudo-code for a simple cookie based sessions.

Route usage

Once attached, inertia is available in your handlers: