isInPagesDir() — astro Function Reference
Architecture documentation for the isInPagesDir() function in util.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a8f8d845_6394_df88_feb8_2507e2df96d9["isInPagesDir()"] a3824e79_205c_305b_a44f_edee1ef5faa4["util.ts"] a8f8d845_6394_df88_feb8_2507e2df96d9 -->|defined in| a3824e79_205c_305b_a44f_edee1ef5faa4 dde926f7_9c30_abb1_62a9_3678f29d2c92["isPage()"] dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| a8f8d845_6394_df88_feb8_2507e2df96d9 fa8579ea_f215_3452_2150_67519e6ea9cb["isEndpoint()"] fa8579ea_f215_3452_2150_67519e6ea9cb -->|calls| a8f8d845_6394_df88_feb8_2507e2df96d9 9ca1d938_50b1_d5ae_db7f_b833b62eaf41["resolvePages()"] a8f8d845_6394_df88_feb8_2507e2df96d9 -->|calls| 9ca1d938_50b1_d5ae_db7f_b833b62eaf41 style a8f8d845_6394_df88_feb8_2507e2df96d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/util.ts lines 128–131
function isInPagesDir(file: URL, config: AstroConfig): boolean {
const pagesDir = resolvePages(config);
return file.toString().startsWith(pagesDir.toString());
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does isInPagesDir() do?
isInPagesDir() is a function in the astro codebase, defined in packages/astro/src/core/util.ts.
Where is isInPagesDir() defined?
isInPagesDir() is defined in packages/astro/src/core/util.ts at line 128.
What does isInPagesDir() call?
isInPagesDir() calls 1 function(s): resolvePages.
What calls isInPagesDir()?
isInPagesDir() is called by 2 function(s): isEndpoint, isPage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free