Home / Function/ closeContainer() — astro Function Reference

closeContainer() — astro Function Reference

Architecture documentation for the closeContainer() function in container.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f935825f_d96c_bb53_6318_c51c5e9340cf["closeContainer()"]
  102fe931_c243_3ea6_cd7a_6811d0d43c9e["container.ts"]
  f935825f_d96c_bb53_6318_c51c5e9340cf -->|defined in| 102fe931_c243_3ea6_cd7a_6811d0d43c9e
  a846ef56_ac96_e5d5_61e4_dcaba65422f8["createContainer()"]
  a846ef56_ac96_e5d5_61e4_dcaba65422f8 -->|calls| f935825f_d96c_bb53_6318_c51c5e9340cf
  style f935825f_d96c_bb53_6318_c51c5e9340cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/dev/container.ts lines 148–154

async function closeContainer({ viteServer, settings, logger }: Container) {
	await viteServer.close();
	await runHookServerDone({
		config: settings.config,
		logger,
	});
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does closeContainer() do?
closeContainer() is a function in the astro codebase, defined in packages/astro/src/core/dev/container.ts.
Where is closeContainer() defined?
closeContainer() is defined in packages/astro/src/core/dev/container.ts at line 148.
What calls closeContainer()?
closeContainer() is called by 1 function(s): createContainer.

Analyze Your Own Codebase

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

Try Supermodel Free