createManifest() — astro Function Reference
Architecture documentation for the createManifest() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 710e13c2_fac7_76ec_34a4_baf8f606379f["createManifest()"] 3e7d5a30_05d3_8677_9bbe_dc57d1b07ace["index.ts"] 710e13c2_fac7_76ec_34a4_baf8f606379f -->|defined in| 3e7d5a30_05d3_8677_9bbe_dc57d1b07ace a13892fd_40a1_27db_b8a2_2fe254fa56ab["constructor()"] a13892fd_40a1_27db_b8a2_2fe254fa56ab -->|calls| 710e13c2_fac7_76ec_34a4_baf8f606379f style 710e13c2_fac7_76ec_34a4_baf8f606379f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/container/index.ts lines 128–179
function createManifest(
manifest?: AstroContainerManifest,
renderers?: SSRLoadedRenderer[],
middleware?: MiddlewareHandler,
): SSRManifest {
function middlewareInstance(): AstroMiddlewareInstance {
return {
onRequest: middleware ?? NOOP_MIDDLEWARE_FN,
};
}
const root = new URL(import.meta.url);
return {
rootDir: root,
srcDir: manifest?.srcDir ?? new URL(ASTRO_CONFIG_DEFAULTS.srcDir, root),
buildClientDir: manifest?.buildClientDir ?? new URL(ASTRO_CONFIG_DEFAULTS.build.client, root),
buildServerDir: manifest?.buildServerDir ?? new URL(ASTRO_CONFIG_DEFAULTS.build.server, root),
publicDir: manifest?.publicDir ?? new URL(ASTRO_CONFIG_DEFAULTS.publicDir, root),
outDir: manifest?.outDir ?? new URL(ASTRO_CONFIG_DEFAULTS.outDir, root),
cacheDir: manifest?.cacheDir ?? new URL(ASTRO_CONFIG_DEFAULTS.cacheDir, root),
trailingSlash: manifest?.trailingSlash ?? ASTRO_CONFIG_DEFAULTS.trailingSlash,
buildFormat: manifest?.buildFormat ?? ASTRO_CONFIG_DEFAULTS.build.format,
compressHTML: manifest?.compressHTML ?? ASTRO_CONFIG_DEFAULTS.compressHTML,
assetsDir: manifest?.assetsDir ?? ASTRO_CONFIG_DEFAULTS.build.assets,
serverLike: manifest?.serverLike ?? true,
assets: manifest?.assets ?? new Set(),
assetsPrefix: manifest?.assetsPrefix ?? undefined,
entryModules: manifest?.entryModules ?? {},
routes: manifest?.routes ?? [],
adapterName: '',
clientDirectives: manifest?.clientDirectives ?? getDefaultClientDirectives(),
renderers: renderers ?? manifest?.renderers ?? [],
base: manifest?.base ?? ASTRO_CONFIG_DEFAULTS.base,
userAssetsBase: manifest?.userAssetsBase ?? '',
componentMetadata: manifest?.componentMetadata ?? new Map(),
inlinedScripts: manifest?.inlinedScripts ?? new Map(),
i18n: manifest?.i18n,
checkOrigin: false,
allowedDomains: manifest?.allowedDomains ?? [],
middleware: manifest?.middleware ?? middlewareInstance,
key: createKey(),
csp: manifest?.csp,
shouldInjectCspMetaTags: false,
devToolbar: {
enabled: false,
latestAstroVersion: undefined,
debugInfoOutput: '',
placement: undefined,
},
logLevel: 'silent',
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createManifest() do?
createManifest() is a function in the astro codebase, defined in packages/astro/src/container/index.ts.
Where is createManifest() defined?
createManifest() is defined in packages/astro/src/container/index.ts at line 128.
What calls createManifest()?
createManifest() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free