MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / toProxiedUrl

Function toProxiedUrl

constants.ts:13–18  ·  view source on GitHub ↗
(url: string, corsProxyUrl = CORS_PROXY)

Source from the content-addressed store, hash-verified

11}
12
13export function toProxiedUrl(url: string, corsProxyUrl = CORS_PROXY): string {
14 if (corsProxyUrl === "none") {
15 return url;
16 }
17 return `${normalizeCorsProxyUrl(corsProxyUrl)}?url=${encodeURIComponent(url)}`;
18}

Callers 2

uploadToS3Function · 0.90
toProxyUrlFunction · 0.90

Calls 1

normalizeCorsProxyUrlFunction · 0.85

Tested by

no test coverage detected