Skip to content

Search the guides, deployment pages, and API reference.

FetchServerOptions

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

Options for fetchServer.

Properties

entry

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?

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

"ssr"