UNPKG

@redocly/cli

Version:

[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g

23 lines (22 loc) 653 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.REUNITE_URLS = void 0; exports.getDomain = getDomain; exports.getReuniteUrl = getReuniteUrl; exports.REUNITE_URLS = { us: 'https://app.cloud.redocly.com', eu: 'https://app.cloud.eu.redocly.com', }; function getDomain() { return process.env.REDOCLY_DOMAIN || exports.REUNITE_URLS.us; } function getReuniteUrl(residency) { if (!residency) residency = 'us'; let reuniteUrl = exports.REUNITE_URLS[residency]; if (!reuniteUrl) { reuniteUrl = residency; } const url = new URL('/api', reuniteUrl).toString(); return url; }