---
title: "FetchServerOptions"
description: "Options for [fetchServer](https://pitlane.tools/package/vite-plugin-fetch-server/function/fetchServer.md)."
url: "https://pitlane.tools/package/vite-plugin-fetch-server/interface/FetchServerOptions"
---

# FetchServerOptions

```ts
import type { FetchServerOptions } from "@pitlane/vite-plugin-fetch-server";
```

Options for [fetchServer](https://pitlane.tools/package/vite-plugin-fetch-server/function/fetchServer.md).

## Properties

### entry

```ts
entry: string;
```

Path to the application's server module, resolved through the environment's module runner, e.g. `"src/http.ts"`. Its default export must be an object with a `fetch(request)` method.

Required. It is never inferred from the environment's build inputs.

---

### environment?

```ts
optional environment?: string;
```

Vite environment whose module runner loads `entry`. It must be a runnable environment, one whose modules run inside the dev server process.

#### Default

```ts
"ssr"
```
