Home / Function/ create() — astro Function Reference

create() — astro Function Reference

Architecture documentation for the create() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  247c0bac_3ec9_44e7_0ee7_5587c9701cc7["create()"]
  cb9f7e72_0a2c_f337_8c0f_3a16cbafeab3["experimental_AstroContainer"]
  247c0bac_3ec9_44e7_0ee7_5587c9701cc7 -->|defined in| cb9f7e72_0a2c_f337_8c0f_3a16cbafeab3
  a13892fd_40a1_27db_b8a2_2fe254fa56ab["constructor()"]
  a13892fd_40a1_27db_b8a2_2fe254fa56ab -->|calls| 247c0bac_3ec9_44e7_0ee7_5587c9701cc7
  d7aea22d_3fc3_221d_dab6_a15370f48fd6["renderToResponse()"]
  d7aea22d_3fc3_221d_dab6_a15370f48fd6 -->|calls| 247c0bac_3ec9_44e7_0ee7_5587c9701cc7
  style 247c0bac_3ec9_44e7_0ee7_5587c9701cc7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/container/index.ts lines 325–337

	public static async create(
		containerOptions: AstroContainerOptions = {},
	): Promise<experimental_AstroContainer> {
		const { streaming = false, manifest, renderers = [], resolve } = containerOptions;
		const astroConfig = await validateConfig(ASTRO_CONFIG_DEFAULTS, process.cwd(), 'container');
		return new experimental_AstroContainer({
			streaming,
			manifest,
			renderers,
			astroConfig,
			resolve,
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does create() do?
create() is a function in the astro codebase, defined in packages/astro/src/container/index.ts.
Where is create() defined?
create() is defined in packages/astro/src/container/index.ts at line 325.
What calls create()?
create() is called by 2 function(s): constructor, renderToResponse.

Analyze Your Own Codebase

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

Try Supermodel Free