Skip to content

Search the guides, deployment pages, and API reference.

PrerenderContext

import type { PrerenderContext } from "@pitlane/vite-plugin-remix";

What a prerender function receives.

Methods

getStaticPaths()

getStaticPaths(): string[];

Every path the app's route map can serve without params — / and /blog, but not /blog/:slug, whose values live outside the route map.

Reads the routes named export of the built server entry. Throws when the server entry does not export one, since there is nothing else to enumerate.

Returns

string[]