@mintlify/common 1.0.663 → 1.0.665
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,4 +4,4 @@ export type DisplayDomainDeployment = {
|
|
|
4
4
|
customDomains?: string[];
|
|
5
5
|
auth?: unknown;
|
|
6
6
|
};
|
|
7
|
-
export declare function getDisplayDomain(deployment: DisplayDomainDeployment, isDev?: boolean): string;
|
|
7
|
+
export declare function getDisplayDomain(deployment: DisplayDomainDeployment, isDev?: boolean, appendBasePath?: boolean): string;
|
package/dist/getDisplayDomain.js
CHANGED
|
@@ -52,12 +52,12 @@ function getSubdomain(deployment) {
|
|
|
52
52
|
return 'mintlify.app';
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
export function getDisplayDomain(deployment, isDev = false) {
|
|
55
|
+
export function getDisplayDomain(deployment, isDev = false, appendBasePath = true) {
|
|
56
56
|
var _a, _b, _c;
|
|
57
57
|
const { subdomain } = deployment;
|
|
58
58
|
if (isDev && !((_a = deployment.customDomains) === null || _a === void 0 ? void 0 : _a[0])) {
|
|
59
59
|
return `${subdomain}.mintlifytest.com`;
|
|
60
60
|
}
|
|
61
61
|
const displayDomainBase = (_c = (_b = deployment.customDomains) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : `${subdomain}.${getSubdomain(deployment)}`;
|
|
62
|
-
return displayDomainBase + deployment.basePath;
|
|
62
|
+
return displayDomainBase + (appendBasePath ? deployment.basePath : '');
|
|
63
63
|
}
|