Home / Function/ getDefaultImageConfig() — astro Function Reference

getDefaultImageConfig() — astro Function Reference

Architecture documentation for the getDefaultImageConfig() function in shared.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ba4fef4a_1ade_78bc_b6c4_0a3fbd2836c9["getDefaultImageConfig()"]
  a016e3b9_7fbf_ffde_b5f4_749606ced138["shared.ts"]
  ba4fef4a_1ade_78bc_b6c4_0a3fbd2836c9 -->|defined in| a016e3b9_7fbf_ffde_b5f4_749606ced138
  6af0b2ae_353d_19ef_eb9a_df1be6805cfe["getAstroImageConfig()"]
  6af0b2ae_353d_19ef_eb9a_df1be6805cfe -->|calls| ba4fef4a_1ade_78bc_b6c4_0a3fbd2836c9
  style ba4fef4a_1ade_78bc_b6c4_0a3fbd2836c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/vercel/src/image/shared.ts lines 4–11

export function getDefaultImageConfig(astroImageConfig: AstroConfig['image']): VercelImageConfig {
	return {
		sizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
		domains: astroImageConfig.domains ?? [],
		// Cast is necessary here because Vercel's types are slightly different from ours regarding allowed protocols. Behavior should be the same, however.
		remotePatterns: (astroImageConfig.remotePatterns as VercelImageConfig['remotePatterns']) ?? [],
	};
}

Domain

Subdomains

Frequently Asked Questions

What does getDefaultImageConfig() do?
getDefaultImageConfig() is a function in the astro codebase, defined in packages/integrations/vercel/src/image/shared.ts.
Where is getDefaultImageConfig() defined?
getDefaultImageConfig() is defined in packages/integrations/vercel/src/image/shared.ts at line 4.
What calls getDefaultImageConfig()?
getDefaultImageConfig() is called by 1 function(s): getAstroImageConfig.

Analyze Your Own Codebase

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

Try Supermodel Free