MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getLibraryBaseUrl

Function getLibraryBaseUrl

packages/dev/mcp/shared/src/utils.ts:45–50  ·  view source on GitHub ↗
(library: 's2' | 'react-aria')

Source from the content-addressed store, hash-verified

43const DEFAULT_REACT_ARIA_BASE = 'https://react-aria.adobe.com';
44
45export function getLibraryBaseUrl(library: 's2' | 'react-aria'): string {
46 if (process.env.DOCS_CDN_BASE) {
47 return process.env.DOCS_CDN_BASE;
48 }
49 return library === 's2' ? DEFAULT_S2_BASE : DEFAULT_REACT_ARIA_BASE;
50}
51
52export async function fetchText(url: string, timeoutMs = 15000): Promise<string> {
53 const ctrl = new AbortController();

Callers 2

buildPageIndexFunction · 0.85
resolvePageRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected