Home / Function/ createRestartedContainer() — astro Function Reference

createRestartedContainer() — astro Function Reference

Architecture documentation for the createRestartedContainer() function in restart.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  11efbd62_1022_3e88_2e76_02de55951878["createRestartedContainer()"]
  2daba797_7568_42ad_0193_df1cabafb75a["restart.ts"]
  11efbd62_1022_3e88_2e76_02de55951878 -->|defined in| 2daba797_7568_42ad_0193_df1cabafb75a
  50fcf1f5_a122_121d_7d4f_e4580fc86537["restartContainer()"]
  50fcf1f5_a122_121d_7d4f_e4580fc86537 -->|calls| 11efbd62_1022_3e88_2e76_02de55951878
  style 11efbd62_1022_3e88_2e76_02de55951878 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/dev/restart.ts lines 19–35

async function createRestartedContainer(
	container: Container,
	settings: AstroSettings,
): Promise<Container> {
	const { logger, fs, inlineConfig } = container;
	const newContainer = await createContainer({
		isRestart: true,
		logger: logger,
		settings,
		inlineConfig,
		fs,
	});

	await startContainer(newContainer);

	return newContainer;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createRestartedContainer() do?
createRestartedContainer() is a function in the astro codebase, defined in packages/astro/src/core/dev/restart.ts.
Where is createRestartedContainer() defined?
createRestartedContainer() is defined in packages/astro/src/core/dev/restart.ts at line 19.
What calls createRestartedContainer()?
createRestartedContainer() is called by 1 function(s): restartContainer.

Analyze Your Own Codebase

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

Try Supermodel Free