resolveRoot() — astro Function Reference
Architecture documentation for the resolveRoot() function in config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d2c2c2d6_6bf3_0908_ed5d_39c223dba699["resolveRoot()"] b7dad900_b555_952f_158e_89aff4cc3f3d["config.ts"] d2c2c2d6_6bf3_0908_ed5d_39c223dba699 -->|defined in| b7dad900_b555_952f_158e_89aff4cc3f3d 0d1ab03e_04f2_35e7_7e2d_93764ee4f484["resolveConfig()"] 0d1ab03e_04f2_35e7_7e2d_93764ee4f484 -->|calls| d2c2c2d6_6bf3_0908_ed5d_39c223dba699 style d2c2c2d6_6bf3_0908_ed5d_39c223dba699 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/config/config.ts lines 20–25
export function resolveRoot(cwd?: string | URL): string {
if (cwd instanceof URL) {
cwd = fileURLToPath(cwd);
}
return cwd ? path.resolve(cwd) : process.cwd();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does resolveRoot() do?
resolveRoot() is a function in the astro codebase, defined in packages/astro/src/core/config/config.ts.
Where is resolveRoot() defined?
resolveRoot() is defined in packages/astro/src/core/config/config.ts at line 20.
What calls resolveRoot()?
resolveRoot() is called by 1 function(s): resolveConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free