[]previous and next page

serverOptionsFromConfig

The handler options a baked configuration stands for.

The handler options a baked configuration stands for. Options the entry file passes itself win over these (the entry is spread after them).

Import#

ts
import { serverOptionsFromConfig } from "@shadow-js/dusk/server";

Signature#

ts
function serverOptionsFromConfig(
  baked: BakedServerConfig | undefined,
): Partial<HandlerOptions>

Parameters#

Name Description
baked The server configuration, or undefined for a project without dusk.config.ts.

Returns#

The options to pass to createHandler.