VercelConfig
The main configuration object for Vercel Build Output API v3.Type definition
Properties
Build Output API version. Always set to
3.Array of routing rules defining how requests are handled. Includes rewrites, redirects, headers, and function mappings.
Image optimization configuration from Next.js image config.
i18n domain wildcard configuration for locale-specific domains.
Map of file paths to override configurations for static files.
Array of cache control patterns.
Example
ImagesConfig
Configuration for Next.js Image Optimization.Type definition
Properties
Array of allowed image widths. Combines
imageSizes and deviceSizes from Next.js config.Allowed domains for remote images.
Pattern-based remote image configuration with regex support.
Pattern-based local image configuration.
Allowed quality values for image optimization.
Minimum cache TTL in seconds for optimized images.
Allowed image formats for optimization.
Whether to allow SVG image optimization.
Content Security Policy for images.
Content-Disposition header type for images.
Example
WildcardConfig
Configuration for i18n domain wildcards.Type definition
Properties
The domain name for this locale.
The path prefix for the locale. Empty string for default locale.
Example
Notes
Generated from Next.jsi18n.domains configuration. The value is:
- Empty string for the default locale
/{locale}for non-default locales
OverridesConfig
Configuration for static file overrides.Type definition
Structure
A record mapping file paths to override configurations.The file path to override (e.g.,
"./about.html").The URL path to serve the file at (e.g.,
"./about").The Content-Type header to use (e.g.,
"text/html; charset=utf-8").Example
Use case
Primarily used for:- Serving HTML files without
.htmlextension - Setting correct content types for static files
- Path rewriting for static assets
FuncOutputs
Type representing function outputs from Next.js build.Type definition
Description
Union type of all possible function output types from the Next.js adapter. Each output includes:pathname: URL pathnameid: Unique identifierfilePath: Path to function entryassets: Required asset filesruntime: “nodejs” or “edge”sourcePage: Original page pathconfig: Function configuration
Example usage
NodeFunctionConfig
Configuration for Node.js serverless functions.Type definition
Properties
Map of required files (relative to repo root).
Path to the function handler file.
Node.js runtime version (e.g., “nodejs20.x”).
Type of operation this function performs.
Framework metadata. For Next.js:
{ slug: 'nextjs', version: '14.1.0' }.Maximum execution duration in seconds.
Whether the function supports multiple payloads. Always
true for Next.js.Whether the function supports streaming responses. Always
true for Next.js.Whether to allow bundling. Always
true for Next.js.Whether to use Web API (Request/Response) instead of Node.js API.
true for middleware.Launcher type identifier.
EdgeFunctionConfig
Configuration for Edge Functions.Type definition
Properties
Runtime identifier for Edge Functions.
Function name.
Path to the function entrypoint.
Map of JavaScript files required by the function.
Non-JavaScript assets (WASM, JSON, etc.).
Deployment target. Always
"v8-worker" for Edge Functions.Environment variables for the function.
Deployment regions for the function.
Framework metadata.