Home / Type/ VercelImageConfig Type — astro Architecture

VercelImageConfig Type — astro Architecture

Architecture documentation for the VercelImageConfig type/interface in shared.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9ebdbe3c_d65e_0fcb_fb6a_f6749fb37e8d["VercelImageConfig"]
  8f340862_b602_446a_cd20_43d3c6f78233["shared.ts"]
  9ebdbe3c_d65e_0fcb_fb6a_f6749fb37e8d -->|defined in| 8f340862_b602_446a_cd20_43d3c6f78233
  style 9ebdbe3c_d65e_0fcb_fb6a_f6749fb37e8d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/vercel/src/image/shared.ts lines 25–54

export type VercelImageConfig = {
	/**
	 * Supported image widths.
	 */
	sizes: number[];
	/**
	 * Allowed external domains that can use Image Optimization. Set to `[]` to only allow the deployment domain to use Image Optimization.
	 */
	domains?: string[];
	/**
	 * Allowed external patterns that can use Image Optimization. Similar to `domains` but provides more control with RegExp.
	 */
	remotePatterns?: RemotePattern[];
	/**
	 * Cache duration (in seconds) for the optimized images.
	 */
	minimumCacheTTL?: number;
	/**
	 * Supported output image formats
	 */
	formats?: ImageFormat[];
	/**
	 * Allow SVG input image URLs. This is disabled by default for security purposes.
	 */
	dangerouslyAllowSVG?: boolean;
	/**
	 * Change the [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) of the optimized images.
	 */
	contentSecurityPolicy?: string;
};

Frequently Asked Questions

What is the VercelImageConfig type?
VercelImageConfig is a type/interface in the astro codebase, defined in packages/integrations/vercel/src/image/shared.ts.
Where is VercelImageConfig defined?
VercelImageConfig is defined in packages/integrations/vercel/src/image/shared.ts at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free