Reference

StartServerOptions

Configures the Node HTTP server used to serve a built app-router output.

Signature

interface StartServerOptions

Members

allowedHosts?: readonly string[]
errorHandler?: (error: unknown): { body: string; headers?: Record<string, string>; status: number }
hostname?: string
hostPolicy?: RequestHostPolicy
importPolicy?: AppRouterImportPolicy
instrumentation?: RouterInstrumentation
logger?: AppRouterLogger
onResponse?: AppRouterResponseHook
onUpgrade?: HttpUpgradeHandler
outDir: string
port: number
prerenderStore?: AppRouterPrerenderStore
routeCache?: AppRouterCache
serverActions?: AppRouterServerActionOptions
sinkStrategy?: ResponseSinkStrategy