VercelServerlessConfig Type — astro Architecture
Architecture documentation for the VercelServerlessConfig type/interface in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b1fd0b51_443c_7070_008e_cbc274488b1b["VercelServerlessConfig"] 9b72c5c7_3349_4acd_8ca1_afe541842abe["index.ts"] b1fd0b51_443c_7070_008e_cbc274488b1b -->|defined in| 9b72c5c7_3349_4acd_8ca1_afe541842abe style b1fd0b51_443c_7070_008e_cbc274488b1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/vercel/src/index.ts lines 144–183
export interface VercelServerlessConfig {
/** Configuration for [Vercel Web Analytics](https://vercel.com/docs/concepts/analytics). */
webAnalytics?: VercelWebAnalyticsConfig;
/** Force files to be bundled with your function. This is helpful when you notice missing files. */
includeFiles?: string[];
/** Exclude any files from the bundling process that would otherwise be included. */
excludeFiles?: string[];
/** When enabled, an Image Service powered by the Vercel Image Optimization API will be automatically configured and used in production. In development, the image service specified by devImageService will be used instead. */
imageService?: boolean;
/** Configuration options for [Vercel’s Image Optimization API](https://vercel.com/docs/concepts/image-optimization). See [Vercel’s image configuration documentation](https://vercel.com/docs/build-output-api/v3/configuration#images) for a complete list of supported parameters. */
imagesConfig?: VercelImageConfig;
/** Allows you to configure which image service to use in development when imageService is enabled. */
devImageService?: DevImageService;
/** Whether to create the Vercel Edge middleware from an Astro middleware in your code base. */
edgeMiddleware?: boolean;
/** The maximum duration (in seconds) that Serverless Functions can run before timing out. See the [Vercel documentation](https://vercel.com/docs/functions/serverless-functions/runtimes#maxduration) for the default and maximum limit for your account plan. */
maxDuration?: number;
/** Whether to cache on-demand rendered pages in the same way as static files. */
isr?: boolean | VercelISRConfig;
/**
* It enables Vercel skew protection: https://vercel.com/docs/deployments/skew-protection
*/
skewProtection?: boolean;
/**
* If enabled, the adapter will save [static headers in the framework API file](https://docs.netlify.com/frameworks-api/#headers).
*
* Here the list of the headers that are added:
* - The CSP header of the static pages is added when CSP support is enabled.
*/
staticHeaders?: boolean;
}
Defined In
Source
Frequently Asked Questions
What is the VercelServerlessConfig type?
VercelServerlessConfig is a type/interface in the astro codebase, defined in packages/integrations/vercel/src/index.ts.
Where is VercelServerlessConfig defined?
VercelServerlessConfig is defined in packages/integrations/vercel/src/index.ts at line 144.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free