getComponentPath() — astro Function Reference
Architecture documentation for the getComponentPath() function in server-islands.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 40c8a937_04ef_474d_1b80_d53166403f39["getComponentPath()"] 4d35505e_dd90_7891_e19a_4730ce8738e2["ServerIslandComponent"] 40c8a937_04ef_474d_1b80_d53166403f39 -->|defined in| 4d35505e_dd90_7891_e19a_4730ce8738e2 bcfee27a_2e68_b340_ffdb_f47378299d82["getIslandContent()"] bcfee27a_2e68_b340_ffdb_f47378299d82 -->|calls| 40c8a937_04ef_474d_1b80_d53166403f39 style 40c8a937_04ef_474d_1b80_d53166403f39 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/server-islands.ts lines 106–116
getComponentPath(): string {
if (this.componentPath) {
return this.componentPath;
}
const componentPath = this.props['server:component-path'];
if (!componentPath) {
throw new Error(`Could not find server component path`);
}
this.componentPath = componentPath;
return componentPath;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getComponentPath() do?
getComponentPath() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/server-islands.ts.
Where is getComponentPath() defined?
getComponentPath() is defined in packages/astro/src/runtime/server/render/server-islands.ts at line 106.
What calls getComponentPath()?
getComponentPath() is called by 1 function(s): getIslandContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free