remoteImagesFromAstroConfig() — astro Function Reference
Architecture documentation for the remoteImagesFromAstroConfig() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 242ad5a4_662b_3ad6_2c84_c29d228d0286["remoteImagesFromAstroConfig()"] 01c2fa75_d554_caf7_1c43_205032b5e695["index.ts"] 242ad5a4_662b_3ad6_2c84_c29d228d0286 -->|defined in| 01c2fa75_d554_caf7_1c43_205032b5e695 f25b5d53_375e_edea_840f_c6ce7d1640f3["writeNetlifyFrameworkConfig()"] f25b5d53_375e_edea_840f_c6ce7d1640f3 -->|calls| 242ad5a4_662b_3ad6_2c84_c29d228d0286 0524ca9e_035f_83b7_32b4_4d658f83f56c["netlifyIntegration()"] 0524ca9e_035f_83b7_32b4_4d658f83f56c -->|calls| 242ad5a4_662b_3ad6_2c84_c29d228d0286 a41e64d4_8e99_aca4_7b01_4ee87210faea["remotePatternToRegex()"] 242ad5a4_662b_3ad6_2c84_c29d228d0286 -->|calls| a41e64d4_8e99_aca4_7b01_4ee87210faea style 242ad5a4_662b_3ad6_2c84_c29d228d0286 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/netlify/src/index.ts lines 109–125
function remoteImagesFromAstroConfig(
config: AstroConfig,
logger: AstroIntegrationLogger,
): string[] {
const remoteImages: string[] = [];
// Domains get a simple regex match
remoteImages.push(
...config.image.domains.map((domain) => `https?:\/\/${domain.replaceAll('.', '\\.')}\/.*`),
);
// Remote patterns need to be converted to regexes
remoteImages.push(
...config.image.remotePatterns
.map((pattern) => remotePatternToRegex(pattern, logger))
.filter(Boolean as unknown as (pattern?: string) => pattern is string),
);
return remoteImages;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does remoteImagesFromAstroConfig() do?
remoteImagesFromAstroConfig() is a function in the astro codebase, defined in packages/integrations/netlify/src/index.ts.
Where is remoteImagesFromAstroConfig() defined?
remoteImagesFromAstroConfig() is defined in packages/integrations/netlify/src/index.ts at line 109.
What does remoteImagesFromAstroConfig() call?
remoteImagesFromAstroConfig() calls 1 function(s): remotePatternToRegex.
What calls remoteImagesFromAstroConfig()?
remoteImagesFromAstroConfig() is called by 2 function(s): netlifyIntegration, writeNetlifyFrameworkConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free