Skip to main content
Use the Hono adapter to inject an inertia helper into request 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

After middleware is attached, handlers can use c.get("inertia").