containsServerDirective() — astro Function Reference
Architecture documentation for the containsServerDirective() function in server-islands.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 73738f5f_6590_d411_f503_c69e980393cd["containsServerDirective()"] cdac2309_6b88_4855_a8b7_92ab5e67a65d["server-islands.ts"] 73738f5f_6590_d411_f503_c69e980393cd -->|defined in| cdac2309_6b88_4855_a8b7_92ab5e67a65d style 73738f5f_6590_d411_f503_c69e980393cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/server-islands.ts lines 17–19
export function containsServerDirective(props: Record<string | number, any>) {
return 'server:component-directive' in props;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does containsServerDirective() do?
containsServerDirective() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/server-islands.ts.
Where is containsServerDirective() defined?
containsServerDirective() is defined in packages/astro/src/runtime/server/render/server-islands.ts at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free