@mintlify/common 1.0.1103 → 1.0.1105
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.
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const API_STATIC_EXPORT_BASE_PATHS: readonly ["", "/docs", "/documentation"];
|
|
2
|
+
export type ApiStaticExportBasePath = (typeof API_STATIC_EXPORT_BASE_PATHS)[number];
|
|
3
|
+
export declare function isApiStaticExportBasePath(basePath: string): basePath is ApiStaticExportBasePath;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Base paths served by the Mintlify-hosted (API/cloud) static-export renderer.
|
|
2
|
+
// Each entry corresponds to one build target in
|
|
3
|
+
// packages/static-export-lambda/Dockerfile (runtime-default / runtime-bp2 /
|
|
4
|
+
// runtime-bp3) and one variant in the infra repo's STATIC_EXPORT_VARIANTS
|
|
5
|
+
// (mintlify-aws/infrastructure → packages/deploy/constants/staticExport.ts).
|
|
6
|
+
// Keep these three lists in sync when adding a base path.
|
|
7
|
+
//
|
|
8
|
+
// Named API_STATIC_EXPORT to distinguish the cloud-hosted set from the
|
|
9
|
+
// self-hosted Dockerfile.selfhost variants (which additionally serve
|
|
10
|
+
// '/docs/demo' and are not hosted by us).
|
|
11
|
+
export const API_STATIC_EXPORT_BASE_PATHS = ['', '/docs', '/documentation'];
|
|
12
|
+
export function isApiStaticExportBasePath(basePath) {
|
|
13
|
+
return API_STATIC_EXPORT_BASE_PATHS.includes(basePath);
|
|
14
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './api-reference/parseApiTargetFromMetadata.js';
|
|
|
29
29
|
export * from './mintIgnore.js';
|
|
30
30
|
export * from './getDisplayDomain.js';
|
|
31
31
|
export * from './getRelativeRecordName.js';
|
|
32
|
+
export * from './apiStaticExportBasePaths.js';
|
|
32
33
|
export * from './basePaths.js';
|
|
33
34
|
export * from './validateCustomDomainBasePath.js';
|
|
34
35
|
export * from './exponentialBackoff.js';
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export * from './api-reference/parseApiTargetFromMetadata.js';
|
|
|
29
29
|
export * from './mintIgnore.js';
|
|
30
30
|
export * from './getDisplayDomain.js';
|
|
31
31
|
export * from './getRelativeRecordName.js';
|
|
32
|
+
export * from './apiStaticExportBasePaths.js';
|
|
32
33
|
export * from './basePaths.js';
|
|
33
34
|
export * from './validateCustomDomainBasePath.js';
|
|
34
35
|
export * from './exponentialBackoff.js';
|