Nuxt Prerender Kit

Nuxt module for prerender-optimized data fetching with automatic tree-shaking.

Features

    Build-time data fetching
    usePrerenderData fetches data during prerender (SSG) and ensures the handler is never executed at runtime.
    Automatic tree-shaking
    A Vite plugin wraps handlers with import.meta.prerender conditionals, enabling dead code elimination so server-only code is completely removed from the client bundle.
    Drop-in replacement
    Works like useAsyncData but designed exclusively for SSG pages.
    Zero configuration
    Works out of the box with sensible defaults. usePrerenderData is auto-imported globally — just use it directly in any page or component.
    AI friendly
    Ships with an agent skill that teaches AI coding assistants best practices for usePrerenderData, preventing common mistakes automatically.
Copyright © 2026