Route pre-rendering
Route pre-rendering produces static HTML during vite build. Nitro writes the generated files to .output/public, where a CDN or server can serve them without rendering the route on each request.
Configure prerendering through Nitro's top-level Vite configuration.
Pre-render selected routes
import { nitro } from "nitro/vite";import { defineConfig } from "vite";import { solidStart } from "@solidjs/start/config";
export default defineConfig({ plugins: [solidStart(), nitro()], nitro: { prerender: { routes: ["/", "/about"], }, },});Crawl links
Set crawlLinks to start at / and follow links found in rendered HTML. Add routes when the crawler needs additional entry points.
export default defineConfig({ plugins: [solidStart(), nitro()], nitro: { prerender: { crawlLinks: true, failOnError: true, }, },});Dynamic routes that are not linked from a crawled page must be listed explicitly or discovered from another entry route.
For retry, concurrency, ignore, and output-path options, see Nitro's prerender configuration.