---
title: "PrerenderContext"
description: "What a `prerender` function receives."
url: "https://pitlane.tools/package/vite-plugin-remix/interface/PrerenderContext"
---

# PrerenderContext

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

What a `prerender` function receives.

## Methods

### getStaticPaths()

```ts
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`\[\]
