Inertia Integration

Note

This page has moved to the Inertia.js section for comprehensive documentation.

The Inertia.js documentation has been reorganized into a dedicated section with focused pages:

Getting Started

The Basics

Data & Props

Security

TypeScript

Quick Reference

Installation:

pip install litestar-vite

Basic Usage:

from litestar import Litestar, get
from litestar_vite import ViteConfig, VitePlugin

@get("/", component="Home")
async def home() -> dict:
    return {"message": "Hello, World!"}

app = Litestar(
    route_handlers=[home],
    plugins=[
        VitePlugin(config=ViteConfig(dev_mode=True, inertia=True)),
    ],
)

Helpers:


Response Classes:


See Also