isPage() — astro Function Reference
Architecture documentation for the isPage() function in util.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD dde926f7_9c30_abb1_62a9_3678f29d2c92["isPage()"] a3824e79_205c_305b_a44f_edee1ef5faa4["util.ts"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|defined in| a3824e79_205c_305b_a44f_edee1ef5faa4 a8f8d845_6394_df88_feb8_2507e2df96d9["isInPagesDir()"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| a8f8d845_6394_df88_feb8_2507e2df96d9 9331b40b_ff1f_4548_3a17_c33ae0f51a3f["isInjectedRoute()"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| 9331b40b_ff1f_4548_3a17_c33ae0f51a3f 6dddd48e_7b79_3a2c_5963_3ff253a1002d["isPublicRoute()"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| 6dddd48e_7b79_3a2c_5963_3ff253a1002d ac4cc111_775a_ab7f_53db_e8cd0aeee9b6["endsWithPageExt()"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| ac4cc111_775a_ab7f_53db_e8cd0aeee9b6 style dde926f7_9c30_abb1_62a9_3678f29d2c92 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/util.ts lines 172–176
export function isPage(file: URL, settings: AstroSettings): boolean {
if (!isInPagesDir(file, settings.config) && !isInjectedRoute(file, settings)) return false;
if (!isPublicRoute(file, settings.config)) return false;
return endsWithPageExt(file, settings);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does isPage() do?
isPage() is a function in the astro codebase, defined in packages/astro/src/core/util.ts.
Where is isPage() defined?
isPage() is defined in packages/astro/src/core/util.ts at line 172.
What does isPage() call?
isPage() calls 4 function(s): endsWithPageExt, isInPagesDir, isInjectedRoute, isPublicRoute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free