createIntegration() — astro Function Reference
Architecture documentation for the createIntegration() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 252d5379_d896_feae_ab26_310bd454c3e1["createIntegration()"] 8168a46e_e6a4_ced9_e8e9_c1e730a2738f["index.ts"] 252d5379_d896_feae_ab26_310bd454c3e1 -->|defined in| 8168a46e_e6a4_ced9_e8e9_c1e730a2738f style 252d5379_d896_feae_ab26_310bd454c3e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmark/packages/adapter/src/index.ts lines 3–32
export default function createIntegration(): AstroIntegration {
return {
name: '@benchmark/timer',
hooks: {
'astro:config:setup': ({ updateConfig }) => {
updateConfig({
vite: {
ssr: {
noExternal: ['@benchmark/timer'],
},
},
});
},
'astro:config:done': ({ setAdapter }) => {
setAdapter({
name: '@benchmark/adapter',
serverEntrypoint: '@benchmark/adapter/server.js',
exports: ['manifest', 'createApp'],
supportedAstroFeatures: {
serverOutput: 'stable',
envGetSecret: 'experimental',
staticOutput: 'stable',
hybridOutput: 'stable',
i18nDomains: 'stable',
},
});
},
},
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createIntegration() do?
createIntegration() is a function in the astro codebase, defined in benchmark/packages/adapter/src/index.ts.
Where is createIntegration() defined?
createIntegration() is defined in benchmark/packages/adapter/src/index.ts at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free