Home / Type/ SSRMetadata Type — astro Architecture

SSRMetadata Type — astro Architecture

Architecture documentation for the SSRMetadata type/interface in internal.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fcaaa146_44d1_cdf4_c4c6_0bf398c1b662["SSRMetadata"]
  5f8ae14a_9d99_50ef_07ac_b89e2336f3ca["internal.ts"]
  fcaaa146_44d1_cdf4_c4c6_0bf398c1b662 -->|defined in| 5f8ae14a_9d99_50ef_07ac_b89e2336f3ca
  style fcaaa146_44d1_cdf4_c4c6_0bf398c1b662 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/types/public/internal.ts lines 278–307

export interface SSRMetadata {
	hasHydrationScript: boolean;
	/**
	 * Names of renderers that have injected their hydration scripts
	 * into the current page. For example, Solid SSR needs a hydration
	 * script in the page HTML before the first Solid component.
	 */
	rendererSpecificHydrationScripts: Set<string>;
	/**
	 * Used by `renderScript` to track script ids that have been rendered,
	 * so we only render each once.
	 */
	renderedScripts: Set<string>;
	hasDirectives: Set<string>;
	hasRenderedHead: boolean;
	hasRenderedServerIslandRuntime: boolean;
	/**
	 * Used to signal the rendering engine if the current route (page) contains the
	 * <head> element.
	 */
	headInTree: boolean;
	extraHead: string[];
	/**
	 * Used by the rendering engine to store hashes that are **generated** at runtime.
	 * For example, this is used by view transitions
	 */
	extraStyleHashes: string[];
	extraScriptHashes: string[];
	propagators: Set<AstroComponentInstance | ServerIslandComponent>;
}

Frequently Asked Questions

What is the SSRMetadata type?
SSRMetadata is a type/interface in the astro codebase, defined in packages/astro/src/types/public/internal.ts.
Where is SSRMetadata defined?
SSRMetadata is defined in packages/astro/src/types/public/internal.ts at line 278.

Analyze Your Own Codebase

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

Try Supermodel Free