UNPKG

@mesh-tech/mesh-cli

Version:

CLI for Mesh platform development utilities

10 lines (9 loc) 340 B
export const FIRST_PARTY_CONTEXTS = Object.freeze({ "mesh.dev": "dev.platform.meshtech.io", }); export function firstPartyDomainFor(context) { if (!Object.hasOwn(FIRST_PARTY_CONTEXTS, context)) return null; const domain = FIRST_PARTY_CONTEXTS[context]; return typeof domain === "string" && domain ? domain : null; }