resolve() — astro Function Reference
Architecture documentation for the resolve() function in dev-url-resolver.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 5c0a3caf_a753_ad29_ff5a_3f4fe25e3e5a["resolve()"] 4df4711d_e5fd_c55f_138c_4977d523f9f9["DevUrlResolver"] 5c0a3caf_a753_ad29_ff5a_3f4fe25e3e5a -->|defined in| 4df4711d_e5fd_c55f_138c_4977d523f9f9 style 5c0a3caf_a753_ad29_ff5a_3f4fe25e3e5a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/fonts/infra/dev-url-resolver.ts lines 21–32
resolve(id: string): string {
this.#resolved ||= true;
const urlPath = prependForwardSlash(joinPaths(this.#base, id));
const url = createPlaceholderURL(urlPath);
// Append searchParams if available (for adapter-level tracking like skew protection)
this.#searchParams.forEach((value, key) => {
url.searchParams.set(key, value);
});
return stringifyPlaceholderURL(url);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does resolve() do?
resolve() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/infra/dev-url-resolver.ts.
Where is resolve() defined?
resolve() is defined in packages/astro/src/assets/fonts/infra/dev-url-resolver.ts at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free