Home / Function/ runHookServerStart() — astro Function Reference

runHookServerStart() — astro Function Reference

Architecture documentation for the runHookServerStart() function in hooks.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  38d87c7b_c05f_fdfa_60c1_9328c98ee5c2["runHookServerStart()"]
  19f4084c_157f_a15d_f001_5d8088b75dee["hooks.ts"]
  38d87c7b_c05f_fdfa_60c1_9328c98ee5c2 -->|defined in| 19f4084c_157f_a15d_f001_5d8088b75dee
  1e1ca282_3771_2cb3_ede6_ff5ab0d382fa["runHookInternal()"]
  38d87c7b_c05f_fdfa_60c1_9328c98ee5c2 -->|calls| 1e1ca282_3771_2cb3_ede6_ff5ab0d382fa
  style 38d87c7b_c05f_fdfa_60c1_9328c98ee5c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/integrations/hooks.ts lines 461–478

export async function runHookServerStart({
	config,
	address,
	logger,
}: {
	config: AstroConfig;
	address: AddressInfo;
	logger: Logger;
}) {
	for (const integration of config.integrations) {
		await runHookInternal({
			integration,
			hookName: 'astro:server:start',
			logger,
			params: () => ({ address }),
		});
	}
}

Domain

Subdomains

Frequently Asked Questions

What does runHookServerStart() do?
runHookServerStart() is a function in the astro codebase, defined in packages/astro/src/integrations/hooks.ts.
Where is runHookServerStart() defined?
runHookServerStart() is defined in packages/astro/src/integrations/hooks.ts at line 461.
What does runHookServerStart() call?
runHookServerStart() calls 1 function(s): runHookInternal.

Analyze Your Own Codebase

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

Try Supermodel Free