VercelAdapterOptions
Options of the vercel adapter.
Options of the vercel adapter.
Import#
ts
import type { VercelAdapterOptions } from "@shadow-js/dusk/vercel";
Signature#
ts
interface VercelAdapterOptions {
/** Where the output goes, relative to the project. Default `.vercel/output`. */
readonly outDir?: string;
/** `"nodejs"` (default) or `"edge"`. The edge runtime cannot use Node built-ins; the build checks that. */
readonly runtime?: "nodejs" | "edge";
/** Node.js version of the function, such as `nodejs22.x`. Default `nodejs22.x`. Node runtime only. */
readonly nodeVersion?: `nodejs${number}.x`;
/** Longest run of the function in seconds (1 to 900). Node runtime only. Default: the platform's default. */
readonly maxDuration?: number;
/** Name of the single function (lower case letters, digits, hyphens). Default `render`. */
readonly functionName?: string;
}
Members#
| Name | Type | Description |
|---|---|---|
outDir? |
readonly outDir?: string |
Where the output goes, relative to the project. Default .vercel/output. |
runtime? |
readonly runtime?: "nodejs" | "edge" |
"nodejs" (default) or "edge". The edge runtime cannot use Node built-ins; the build checks that. |
nodeVersion? |
readonly nodeVersion?: `nodejs${number}.x` |
Node.js version of the function, such as nodejs22.x. Default nodejs22.x. Node runtime only. |
maxDuration? |
readonly maxDuration?: number |
Longest run of the function in seconds (1 to 900). Node runtime only. Default: the platform's default. |
functionName? |
readonly functionName?: string |
Name of the single function (lower case letters, digits, hyphens). Default render. |