---
url: >-
  https://lit-ui-router.dev/api/lit-ui-router-ssr/vite/type-aliases/PrerenderScriptOptions.md
---
[lit-ui-router-ssr](../../index.md) / [vite](../index.md) / PrerenderScriptOptions

# Type Alias: PrerenderScriptOptions

```ts
type PrerenderScriptOptions = Omit<PrerenderOptions, "outDir" | "write"> & Partial<Pick<PrerenderOptions, "outDir" | "write">>;
```

Defined in: [packages/lit-ui-router-ssr/src/vite.ts:54](https://github.com/simshanith/lit-ui-router/blob/ef3e46636efc18ec90dbba19adacfdffe05f88f4/packages/lit-ui-router-ssr/src/vite.ts#L54)

What a prerender script's callback returns: this package's
[PrerenderOptions](../../index/interfaces/PrerenderOptions.md), less what the build supplies. `outDir` and
`write` come from the build, so a script may still pass either to
override it.
