isRequestServerIsland() — astro Function Reference
Architecture documentation for the isRequestServerIsland() function in match.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b90ba837_b0ad_3031_d9d0_ce38cd517eeb["isRequestServerIsland()"] 0b4969b2_7e25_9c4a_3b7f_911a988f8209["match.ts"] b90ba837_b0ad_3031_d9d0_ce38cd517eeb -->|defined in| 0b4969b2_7e25_9c4a_3b7f_911a988f8209 style b90ba837_b0ad_3031_d9d0_ce38cd517eeb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/routing/match.ts lines 59–65
export function isRequestServerIsland(request: Request, base = ''): boolean {
const url = new URL(request.url);
const pathname =
base === '/' ? url.pathname.slice(base.length) : url.pathname.slice(base.length + 1);
return pathname.startsWith(SERVER_ISLAND_BASE_PREFIX);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does isRequestServerIsland() do?
isRequestServerIsland() is a function in the astro codebase, defined in packages/astro/src/core/routing/match.ts.
Where is isRequestServerIsland() defined?
isRequestServerIsland() is defined in packages/astro/src/core/routing/match.ts at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free