getConfiguredImageService() — astro Function Reference
Architecture documentation for the getConfiguredImageService() function in internal.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 91cd6b7a_b120_cd6c_671d_779ee58b17f4["getConfiguredImageService()"] aac8b1fe_d242_0071_1169_4222f10fb7b6["internal.ts"] 91cd6b7a_b120_cd6c_671d_779ee58b17f4 -->|defined in| aac8b1fe_d242_0071_1169_4222f10fb7b6 84967c2c_7ba2_2d7e_57a8_a20740526215["getImage()"] 84967c2c_7ba2_2d7e_57a8_a20740526215 -->|calls| 91cd6b7a_b120_cd6c_671d_779ee58b17f4 style 91cd6b7a_b120_cd6c_671d_779ee58b17f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/internal.ts lines 25–42
export async function getConfiguredImageService(): Promise<ImageService> {
if (!globalThis?.astroAsset?.imageService) {
const { default: service }: { default: ImageService } = await import(
// @ts-expect-error
'virtual:image-service'
).catch((e) => {
const error = new AstroError(AstroErrorData.InvalidImageService);
error.cause = e;
throw error;
});
if (!globalThis.astroAsset) globalThis.astroAsset = {};
globalThis.astroAsset.imageService = service;
return service;
}
return globalThis.astroAsset.imageService;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getConfiguredImageService() do?
getConfiguredImageService() is a function in the astro codebase, defined in packages/astro/src/assets/internal.ts.
Where is getConfiguredImageService() defined?
getConfiguredImageService() is defined in packages/astro/src/assets/internal.ts at line 25.
What calls getConfiguredImageService()?
getConfiguredImageService() is called by 1 function(s): getImage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free