@mintlify/common 1.0.998 → 1.0.999

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.
@@ -1,7 +1 @@
1
- export type ManagedBasePathConfig = {
2
- domain: string;
3
- rewriteSuffix: string;
4
- };
5
- export declare const MANAGED_BASE_PATHS: Map<string, ManagedBasePathConfig>;
6
- export declare function isManagedBasePath(basePath: string): boolean;
7
- export declare function isCustomBasePath(basePath: string): boolean;
1
+ export { isCustomBasePath, isManagedBasePath, MANAGED_BASE_PATHS, type ManagedBasePathConfig, } from '@mintlify/auth-edge';
package/dist/basePaths.js CHANGED
@@ -1,25 +1 @@
1
- export const MANAGED_BASE_PATHS = new Map([
2
- ['/docs', { domain: 'mintlify.dev', rewriteSuffix: '.subdirectory-docs.mintlify.me' }],
3
- ['/help', { domain: 'mintlify.help', rewriteSuffix: '.help.mintlify.me' }],
4
- ['/guides', { domain: 'mintlify-guides.com', rewriteSuffix: '.guides.mintlify.me' }],
5
- ['/wiki', { domain: 'mintlify.wiki', rewriteSuffix: '.wiki.mintlify.me' }],
6
- ['/developers', { domain: 'mintlify.de', rewriteSuffix: '.developers.mintlify.me' }],
7
- ['/academy', { domain: 'mintlify.academy', rewriteSuffix: '.academy.mintlify.me' }],
8
- ['/connect', { domain: 'mintlify-connect.com', rewriteSuffix: '.connect.mintlify.me' }],
9
- ['/go', { domain: 'mintlify-go.com', rewriteSuffix: '.go.mintlify.me' }],
10
- ['/blog', { domain: 'mintlify.blog', rewriteSuffix: '.blog.mintlify.me' }],
11
- [
12
- '/docs/rest-api/reference',
13
- {
14
- domain: 'mintlify-docs-rest-api-reference.com',
15
- rewriteSuffix: '.docs-rest-api-reference.mintlify.me',
16
- },
17
- ],
18
- ['/ai/docs', { domain: 'mintlify-ai-docs.com', rewriteSuffix: '.ai-docs.mintlify.me' }],
19
- ]);
20
- export function isManagedBasePath(basePath) {
21
- return MANAGED_BASE_PATHS.has(basePath);
22
- }
23
- export function isCustomBasePath(basePath) {
24
- return basePath.length > 0 && !MANAGED_BASE_PATHS.has(basePath);
25
- }
1
+ export { isCustomBasePath, isManagedBasePath, MANAGED_BASE_PATHS, } from '@mintlify/auth-edge';