getServerIslandRouteData() — astro Function Reference
Architecture documentation for the getServerIslandRouteData() function in endpoint.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 9e8695e3_3604_3a95_c806_919849c01c18["getServerIslandRouteData()"] 97c01b61_891f_8dac_ac27_a13227b30c79["endpoint.ts"] 9e8695e3_3604_3a95_c806_919849c01c18 -->|defined in| 97c01b61_891f_8dac_ac27_a13227b30c79 3969caf5_111a_2970_82f7_503c499cdf81["injectServerIslandRoute()"] 3969caf5_111a_2970_82f7_503c499cdf81 -->|calls| 9e8695e3_3604_3a95_c806_919849c01c18 style 9e8695e3_3604_3a95_c806_919849c01c18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/server-islands/endpoint.ts lines 20–39
function getServerIslandRouteData(config: ConfigFields) {
const segments = [
[{ content: '_server-islands', dynamic: false, spread: false }],
[{ content: 'name', dynamic: true, spread: false }],
];
const route: RouteData = {
type: 'page',
component: SERVER_ISLAND_COMPONENT,
params: ['name'],
segments,
pattern: getPattern(segments, config.base, config.trailingSlash),
prerender: false,
isIndex: false,
fallbackRoutes: [],
route: SERVER_ISLAND_ROUTE,
origin: 'internal',
distURL: [],
};
return route;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getServerIslandRouteData() do?
getServerIslandRouteData() is a function in the astro codebase, defined in packages/astro/src/core/server-islands/endpoint.ts.
Where is getServerIslandRouteData() defined?
getServerIslandRouteData() is defined in packages/astro/src/core/server-islands/endpoint.ts at line 20.
What calls getServerIslandRouteData()?
getServerIslandRouteData() is called by 1 function(s): injectServerIslandRoute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free