utils.ts — astro Source File
Architecture documentation for utils.ts, a typescript file in the astro codebase.
Entity Profile
Relationship Graph
Source Code
const base = import.meta.env.BASE_URL.replace(/\/$/, '');
/** Prefix a URL path with the site’s base path if set. */
export const withBase = (path: string) => base + path;
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does utils.ts do?
utils.ts is a source file in the astro codebase, written in typescript. It belongs to the StateStores domain, NanostoresImplementation subdomain.
What functions are defined in utils.ts?
utils.ts defines 1 function(s): withBase.
Where is utils.ts in the architecture?
utils.ts is located at examples/with-nanostores/src/utils.ts (domain: StateStores, subdomain: NanostoresImplementation, directory: examples/with-nanostores/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free