MCPcopy
hub / github.com/directus/directus / getUrl

Function getUrl

tests/blackbox/common/config.ts:351–361  ·  view source on GitHub ↗
(vendor: Vendor, overrideEnv?: Env)

Source from the content-addressed store, hash-verified

349}
350
351export function getUrl(vendor: Vendor, overrideEnv?: Env) {
352 let port = overrideEnv ? overrideEnv[vendor].PORT : config.envs[vendor].PORT;
353
354 if (process.env['TEST_LOCAL']) {
355 port = '8055';
356 } else if (process.env['TEST_NO_CACHE']) {
357 port = String(parseInt(config.envs[vendor].PORT) + 50);
358 }
359
360 return `http://127.0.0.1:${port}`;
361}
362
363export default config;

Callers 15

PrepareRequestFunction · 0.90
setupFunction · 0.90
redact.test.tsFile · 0.90
ldap.test.tsFile · 0.90
login.test.tsFile · 0.90
refresh.test.tsFile · 0.90
saml.test.tsFile · 0.90
read.test.tsFile · 0.90
format.test.tsFile · 0.90
spawnAutoCannonFunction · 0.90

Calls

no outgoing calls

Tested by 3

spawnAutoCannonFunction · 0.72
clearCacheAndFetchOnceFunction · 0.72
assertCollectionsDeletedFunction · 0.72