removeBasePath() — astro Function Reference
Architecture documentation for the removeBasePath() function in static-build.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2e87c510_f294_4cb2_813e_6b81baeb5ad4["removeBasePath()"] 8471ccab_7433_7e69_af6a_2a12f4246c8b["static-build.test.js"] 2e87c510_f294_4cb2_813e_6b81baeb5ad4 -->|defined in| 8471ccab_7433_7e69_af6a_2a12f4246c8b style 2e87c510_f294_4cb2_813e_6b81baeb5ad4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/static-build.test.js lines 11–14
function removeBasePath(path) {
// `/subpath` is defined in the test fixture's Astro config
return path.replace('/subpath', '');
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does removeBasePath() do?
removeBasePath() is a function in the astro codebase, defined in packages/astro/test/static-build.test.js.
Where is removeBasePath() defined?
removeBasePath() is defined in packages/astro/test/static-build.test.js at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free