zephyr-agent
Version:
Zephyr plugin agent
12 lines (11 loc) • 433 B
JavaScript
import "node:module";
import { getApplicationConfiguration } from "../edge-requests/get-application-configuration.mjs";
async function getCacheKey(application_uid) {
let edgeUrl = (await getApplicationConfiguration({
application_uid
}))?.EDGE_URL || '';
if (edgeUrl) edgeUrl = new URL(edgeUrl).host;
return `${application_uid}-${edgeUrl}`;
}
export { getCacheKey };
//# sourceMappingURL=get-cache-key.mjs.map