@vercel/microfrontends 0.13.0 → 0.15.0
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.
- package/README.md +3 -3
- package/dist/bin/cli.cjs +403 -1627
- package/dist/config.cjs +460 -1004
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.ts +4 -25
- package/dist/config.js +456 -983
- package/dist/config.js.map +1 -1
- package/dist/{index-83133f2d.d.ts → index-bf67a461.d.ts} +3 -10
- package/dist/{v2/microfrontends → microfrontends}/server.cjs +128 -194
- package/dist/microfrontends/server.cjs.map +1 -0
- package/dist/{v2/microfrontends → microfrontends}/server.d.ts +6 -5
- package/dist/{v2/microfrontends → microfrontends}/server.js +125 -191
- package/dist/microfrontends/server.js.map +1 -0
- package/dist/{v2/microfrontends.cjs → microfrontends.cjs} +21 -35
- package/dist/microfrontends.cjs.map +1 -0
- package/dist/{v2/microfrontends.d.ts → microfrontends.d.ts} +4 -3
- package/dist/{v2/microfrontends.js → microfrontends.js} +20 -34
- package/dist/microfrontends.js.map +1 -0
- package/dist/next/client.cjs +1 -1
- package/dist/next/client.cjs.map +1 -1
- package/dist/next/client.js +1 -1
- package/dist/next/client.js.map +1 -1
- package/dist/next/config.cjs +1323 -1024
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.d.ts +1 -1
- package/dist/next/config.js +1327 -1028
- package/dist/next/config.js.map +1 -1
- package/dist/next/endpoints.cjs +77 -18
- package/dist/next/endpoints.cjs.map +1 -1
- package/dist/next/endpoints.d.ts +14 -3
- package/dist/next/endpoints.js +77 -18
- package/dist/next/endpoints.js.map +1 -1
- package/dist/next/middleware.cjs +745 -425
- package/dist/next/middleware.cjs.map +1 -1
- package/dist/next/middleware.d.ts +10 -5
- package/dist/next/middleware.js +745 -425
- package/dist/next/middleware.js.map +1 -1
- package/dist/next/testing.cjs +595 -1032
- package/dist/next/testing.cjs.map +1 -1
- package/dist/next/testing.d.ts +14 -12
- package/dist/next/testing.js +589 -1016
- package/dist/next/testing.js.map +1 -1
- package/dist/overrides.cjs +40 -108
- package/dist/overrides.cjs.map +1 -1
- package/dist/overrides.d.ts +24 -2
- package/dist/overrides.js +36 -106
- package/dist/overrides.js.map +1 -1
- package/dist/routing.cjs +19 -0
- package/dist/routing.cjs.map +1 -0
- package/dist/routing.d.ts +26 -0
- package/dist/routing.js +1 -0
- package/dist/{v2/schema.cjs → schema.cjs} +1 -1
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js.map +1 -0
- package/dist/{types-a995174e.d.ts → types-a29d224a.d.ts} +1 -7
- package/dist/{types-15b7f215.d.ts → types-cfe3308b.d.ts} +1 -1
- package/dist/types-fc30696d.d.ts +11 -0
- package/dist/utils/mfe-port.cjs +254 -1362
- package/dist/utils/mfe-port.cjs.map +1 -1
- package/dist/utils/mfe-port.js +250 -1358
- package/dist/utils/mfe-port.js.map +1 -1
- package/dist/validation.cjs +31 -365
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.d.ts +3 -152
- package/dist/validation.js +30 -363
- package/dist/validation.js.map +1 -1
- package/package.json +32 -80
- package/schema/schema.json +174 -244
- package/dist/config/client.cjs +0 -54
- package/dist/config/client.cjs.map +0 -1
- package/dist/config/client.d.ts +0 -23
- package/dist/config/client.js +0 -28
- package/dist/config/client.js.map +0 -1
- package/dist/config/edge.cjs +0 -508
- package/dist/config/edge.cjs.map +0 -1
- package/dist/config/edge.d.ts +0 -20
- package/dist/config/edge.js +0 -481
- package/dist/config/edge.js.map +0 -1
- package/dist/microfrontend-config-983a5139.d.ts +0 -154
- package/dist/schema-2922d49e.d.ts +0 -182
- package/dist/v2/config.cjs +0 -723
- package/dist/v2/config.cjs.map +0 -1
- package/dist/v2/config.d.ts +0 -3
- package/dist/v2/config.js +0 -698
- package/dist/v2/config.js.map +0 -1
- package/dist/v2/microfrontends/server.cjs.map +0 -1
- package/dist/v2/microfrontends/server.js.map +0 -1
- package/dist/v2/microfrontends.cjs.map +0 -1
- package/dist/v2/microfrontends.js.map +0 -1
- package/dist/v2/next/client.cjs +0 -3
- package/dist/v2/next/client.cjs.map +0 -1
- package/dist/v2/next/client.d.ts +0 -45
- package/dist/v2/next/client.js +0 -3
- package/dist/v2/next/client.js.map +0 -1
- package/dist/v2/next/config.cjs +0 -2132
- package/dist/v2/next/config.cjs.map +0 -1
- package/dist/v2/next/config.d.ts +0 -22
- package/dist/v2/next/config.js +0 -2097
- package/dist/v2/next/config.js.map +0 -1
- package/dist/v2/next/endpoints.cjs +0 -141
- package/dist/v2/next/endpoints.cjs.map +0 -1
- package/dist/v2/next/endpoints.d.ts +0 -15
- package/dist/v2/next/endpoints.js +0 -116
- package/dist/v2/next/endpoints.js.map +0 -1
- package/dist/v2/next/middleware.cjs +0 -1143
- package/dist/v2/next/middleware.cjs.map +0 -1
- package/dist/v2/next/middleware.d.ts +0 -29
- package/dist/v2/next/middleware.js +0 -1115
- package/dist/v2/next/middleware.js.map +0 -1
- package/dist/v2/overrides.cjs +0 -75
- package/dist/v2/overrides.cjs.map +0 -1
- package/dist/v2/overrides.d.ts +0 -24
- package/dist/v2/overrides.js +0 -45
- package/dist/v2/overrides.js.map +0 -1
- package/dist/v2/schema.cjs.map +0 -1
- package/dist/v2/schema.d.ts +0 -1
- package/schema/schema-v2.json +0 -270
- /package/dist/{v2/schema.js.map → routing.js.map} +0 -0
- /package/dist/{v2/schema.js → schema.js} +0 -0
package/dist/overrides.d.ts
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { O as OverridesConfig } from './types-cfe3308b.js';
|
|
2
|
+
export { A as ApplicationOverrideConfig } from './types-cfe3308b.js';
|
|
3
|
+
import './types-a29d224a.js';
|
|
4
|
+
|
|
5
|
+
declare function isOverrideCookie(cookie: {
|
|
6
|
+
name?: string;
|
|
7
|
+
}): boolean;
|
|
8
|
+
|
|
9
|
+
declare function parseOverrides(cookies: {
|
|
10
|
+
name: string;
|
|
11
|
+
value?: string | null;
|
|
12
|
+
}[]): OverridesConfig;
|
|
13
|
+
|
|
14
|
+
declare function getOverrideFromCookie(cookie: {
|
|
15
|
+
name: string;
|
|
16
|
+
value?: string | null;
|
|
17
|
+
}): {
|
|
18
|
+
application: string;
|
|
19
|
+
host: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
|
|
22
|
+
declare function getAppEnvOverrideCookieName(application: string): string;
|
|
23
|
+
|
|
24
|
+
export { OverridesConfig, getAppEnvOverrideCookieName, getOverrideFromCookie, isOverrideCookie, parseOverrides };
|
package/dist/overrides.js
CHANGED
|
@@ -1,115 +1,45 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
// src/config/overrides/constants.ts
|
|
2
|
+
var OVERRIDES_COOKIE_PREFIX = "vercel-micro-frontends-override";
|
|
3
|
+
var OVERRIDES_ENV_COOKIE_PREFIX = `${OVERRIDES_COOKIE_PREFIX}:env:`;
|
|
4
|
+
|
|
5
|
+
// src/config/overrides/is-override-cookie.ts
|
|
6
|
+
function isOverrideCookie(cookie) {
|
|
7
|
+
var _a;
|
|
8
|
+
return Boolean((_a = cookie.name) == null ? void 0 : _a.startsWith(OVERRIDES_COOKIE_PREFIX));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// src/config/overrides/get-override-from-cookie.ts
|
|
12
|
+
function getOverrideFromCookie(cookie) {
|
|
13
|
+
if (!isOverrideCookie(cookie) || !cookie.value)
|
|
14
|
+
return;
|
|
11
15
|
return {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let tag;
|
|
15
|
-
if (args.length === 0) {
|
|
16
|
-
throw new Error("generate method must be passed at least one argument");
|
|
17
|
-
}
|
|
18
|
-
for (let i = 0; i < args.length; i++) {
|
|
19
|
-
const arg = args[i];
|
|
20
|
-
if (typeof arg !== "string")
|
|
21
|
-
throw new Error("all supplied arguments must be Strings");
|
|
22
|
-
if (options.trimWhitespace) {
|
|
23
|
-
args[i] = arg.trim();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
tag = args.join(options.joinString);
|
|
27
|
-
tag = tag.replace(/\s/g, options.joinString);
|
|
28
|
-
if (options.lowercaseOnly)
|
|
29
|
-
tag = tag.toLowerCase();
|
|
30
|
-
tag = tag.replace(options.regexRemovePattern, (match) => {
|
|
31
|
-
if (match === options.joinString)
|
|
32
|
-
return match;
|
|
33
|
-
return "";
|
|
34
|
-
});
|
|
35
|
-
if (tag.length > options.maxLen)
|
|
36
|
-
tag = tag.substring(0, options.maxLen);
|
|
37
|
-
tag = tag.replace(reJoinString, options.joinString);
|
|
38
|
-
return tag;
|
|
39
|
-
}
|
|
16
|
+
application: cookie.name.replace(OVERRIDES_ENV_COOKIE_PREFIX, ""),
|
|
17
|
+
host: cookie.value
|
|
40
18
|
};
|
|
41
19
|
}
|
|
42
|
-
var urlSafeString = buildUrlSafeString().generate;
|
|
43
|
-
function makeUrlSafe(name) {
|
|
44
|
-
return urlSafeString(name.replace(/\//g, "-")).replace(/^-*/g, "").replace(/-*$/g, "");
|
|
45
|
-
}
|
|
46
20
|
|
|
47
|
-
// src/config/overrides/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
static getAppEnvOverrideCookieName(zone) {
|
|
54
|
-
return `${_Overrides.overrideEnvCookiePrefix}${zone}`;
|
|
55
|
-
}
|
|
56
|
-
static isOverrideCookie(cookie) {
|
|
57
|
-
var _a;
|
|
58
|
-
return Boolean((_a = cookie.name) == null ? void 0 : _a.startsWith(OVERRIDES_COOKIE_PREFIX));
|
|
59
|
-
}
|
|
60
|
-
static getOverrideFromCookie(cookie) {
|
|
61
|
-
if (!_Overrides.isOverrideCookie(cookie) || !cookie.value)
|
|
21
|
+
// src/config/overrides/parse-overrides.ts
|
|
22
|
+
function parseOverrides(cookies) {
|
|
23
|
+
const overridesConfig = { applications: {} };
|
|
24
|
+
cookies.forEach((cookie) => {
|
|
25
|
+
const override = getOverrideFromCookie(cookie);
|
|
26
|
+
if (!override)
|
|
62
27
|
return;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
host: cookie.value
|
|
28
|
+
overridesConfig.applications[override.application] = {
|
|
29
|
+
environment: { host: override.host }
|
|
66
30
|
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
environment: { host: override.host }
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
return overridesConfig;
|
|
79
|
-
}
|
|
80
|
-
static validOverrideDomainsForZone(microfrontendConfig, zone) {
|
|
81
|
-
var _a, _b, _c, _d, _e;
|
|
82
|
-
const projectName = (_a = microfrontendConfig.getZone(zone).vercel) == null ? void 0 : _a.projectName;
|
|
83
|
-
if (!projectName) {
|
|
84
|
-
return [microfrontendConfig.getZone(zone).production.host];
|
|
85
|
-
}
|
|
86
|
-
const parsedProjectName = makeUrlSafe(projectName);
|
|
87
|
-
const previewDeploymentSuffix = (_c = (_b = microfrontendConfig.options) == null ? void 0 : _b.vercel) == null ? void 0 : _c.previewDeploymentSuffix;
|
|
88
|
-
const teamSlug = (_e = (_d = microfrontendConfig.options) == null ? void 0 : _d.vercel) == null ? void 0 : _e.teamSlug;
|
|
89
|
-
if (!teamSlug && !previewDeploymentSuffix) {
|
|
90
|
-
return [microfrontendConfig.getZone(zone).production.host];
|
|
91
|
-
}
|
|
92
|
-
const suffix = previewDeploymentSuffix ? `.${previewDeploymentSuffix}` : `-${teamSlug}.vercel.app`;
|
|
93
|
-
return [
|
|
94
|
-
`${parsedProjectName}-git-([a-zA-Z0-9-]+)${suffix}`,
|
|
95
|
-
microfrontendConfig.getZone(zone).production.host
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
static validateOverrideDomain(microfrontendConfig, zone, domain) {
|
|
99
|
-
return new RegExp(
|
|
100
|
-
`^${_Overrides.validOverrideDomainsForZone(microfrontendConfig, zone).join(
|
|
101
|
-
"|"
|
|
102
|
-
)}$`
|
|
103
|
-
).test(domain);
|
|
104
|
-
}
|
|
105
|
-
serialize() {
|
|
106
|
-
return this.config;
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var Overrides = _Overrides;
|
|
110
|
-
Overrides.overrideEnvCookiePrefix = `${OVERRIDES_COOKIE_PREFIX}:env:`;
|
|
31
|
+
});
|
|
32
|
+
return overridesConfig;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// src/config/overrides/get-app-env-override-cookie-name.ts
|
|
36
|
+
function getAppEnvOverrideCookieName(application) {
|
|
37
|
+
return `${OVERRIDES_ENV_COOKIE_PREFIX}${application}`;
|
|
38
|
+
}
|
|
111
39
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
40
|
+
getAppEnvOverrideCookieName,
|
|
41
|
+
getOverrideFromCookie,
|
|
42
|
+
isOverrideCookie,
|
|
43
|
+
parseOverrides
|
|
114
44
|
};
|
|
115
45
|
//# sourceMappingURL=overrides.js.map
|
package/dist/overrides.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/
|
|
1
|
+
{"version":3,"sources":["../src/config/overrides/constants.ts","../src/config/overrides/is-override-cookie.ts","../src/config/overrides/get-override-from-cookie.ts","../src/config/overrides/parse-overrides.ts","../src/config/overrides/get-app-env-override-cookie-name.ts"],"sourcesContent":["// cookie name needs to match proxy\n// https://github.com/vercel/proxy/blob/fb00d723136ad539a194e4a851dd272010527c35/lib/routing/micro_frontends_overrides.lua#L7\nexport const OVERRIDES_COOKIE_PREFIX = 'vercel-micro-frontends-override';\nexport const OVERRIDES_ENV_COOKIE_PREFIX = `${OVERRIDES_COOKIE_PREFIX}:env:`;\n","import { OVERRIDES_COOKIE_PREFIX } from './constants';\n\nexport function isOverrideCookie(cookie: { name?: string }): boolean {\n return Boolean(cookie.name?.startsWith(OVERRIDES_COOKIE_PREFIX));\n}\n","import { isOverrideCookie } from './is-override-cookie';\nimport { OVERRIDES_ENV_COOKIE_PREFIX } from './constants';\n\nexport function getOverrideFromCookie(cookie: {\n name: string;\n value?: string | null;\n}): { application: string; host: string } | undefined {\n if (!isOverrideCookie(cookie) || !cookie.value) return;\n return {\n application: cookie.name.replace(OVERRIDES_ENV_COOKIE_PREFIX, ''),\n host: cookie.value,\n };\n}\n","import type { OverridesConfig } from './types';\nimport { getOverrideFromCookie } from './get-override-from-cookie';\n\nexport function parseOverrides(\n cookies: { name: string; value?: string | null }[],\n): OverridesConfig {\n const overridesConfig: OverridesConfig = { applications: {} };\n\n cookies.forEach((cookie) => {\n const override = getOverrideFromCookie(cookie);\n if (!override) return;\n overridesConfig.applications[override.application] = {\n environment: { host: override.host },\n };\n });\n\n return overridesConfig;\n}\n","import { OVERRIDES_ENV_COOKIE_PREFIX } from './constants';\n\nexport function getAppEnvOverrideCookieName(application: string): string {\n return `${OVERRIDES_ENV_COOKIE_PREFIX}${application}`;\n}\n"],"mappings":";AAEO,IAAM,0BAA0B;AAChC,IAAM,8BAA8B,GAAG;;;ACDvC,SAAS,iBAAiB,QAAoC;AAFrE;AAGE,SAAO,SAAQ,YAAO,SAAP,mBAAa,WAAW,wBAAwB;AACjE;;;ACDO,SAAS,sBAAsB,QAGgB;AACpD,MAAI,CAAC,iBAAiB,MAAM,KAAK,CAAC,OAAO;AAAO;AAChD,SAAO;AAAA,IACL,aAAa,OAAO,KAAK,QAAQ,6BAA6B,EAAE;AAAA,IAChE,MAAM,OAAO;AAAA,EACf;AACF;;;ACTO,SAAS,eACd,SACiB;AACjB,QAAM,kBAAmC,EAAE,cAAc,CAAC,EAAE;AAE5D,UAAQ,QAAQ,CAAC,WAAW;AAC1B,UAAM,WAAW,sBAAsB,MAAM;AAC7C,QAAI,CAAC;AAAU;AACf,oBAAgB,aAAa,SAAS,WAAW,IAAI;AAAA,MACnD,aAAa,EAAE,MAAM,SAAS,KAAK;AAAA,IACrC;AAAA,EACF,CAAC;AAED,SAAO;AACT;;;ACfO,SAAS,4BAA4B,aAA6B;AACvE,SAAO,GAAG,8BAA8B;AAC1C;","names":[]}
|
package/dist/routing.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/routing/index.ts
|
|
17
|
+
var routing_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(routing_exports);
|
|
19
|
+
//# sourceMappingURL=routing.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/routing/index.ts"],"sourcesContent":["export * from './types';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface VercelRelatedProject {
|
|
2
|
+
/**
|
|
3
|
+
* Vercel project data
|
|
4
|
+
*/
|
|
5
|
+
project: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
production: {
|
|
10
|
+
url?: string;
|
|
11
|
+
alias?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Preview deployment aliases
|
|
15
|
+
* NOTE: Only the branch alias is returned as we can't guess the value of deployment.url
|
|
16
|
+
* (which is used as the commit alias) because it's non-deterministic.
|
|
17
|
+
*/
|
|
18
|
+
preview: {
|
|
19
|
+
/**
|
|
20
|
+
* The branch alias for the preview deployment
|
|
21
|
+
*/
|
|
22
|
+
branch?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { VercelRelatedProject };
|
package/dist/routing.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -13,7 +13,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
13
|
};
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
15
|
|
|
16
|
-
// src/config
|
|
16
|
+
// src/config/schema/index.ts
|
|
17
17
|
var schema_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(schema_exports);
|
|
19
19
|
//# sourceMappingURL=schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/schema/index.ts"],"sourcesContent":["export {\n Application as MicrofrontendApplicationSchema,\n Config as MicrofrontendSchema,\n MainConfig as MainMicrofrontendSchema,\n} from './types';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { M as MainMicrofrontendSchema, A as MicrofrontendApplicationSchema, C as MicrofrontendSchema } from './types-a29d224a.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -109,12 +109,6 @@ interface Vercel {
|
|
|
109
109
|
projectId: string;
|
|
110
110
|
}
|
|
111
111
|
interface VercelOptions {
|
|
112
|
-
/**
|
|
113
|
-
* If your team uses a custom Preview Deployment Suffix, please specify it here.
|
|
114
|
-
* See https://vercel.com/docs/deployments/preview-deployment-suffix.
|
|
115
|
-
* The default is `vercel.app`.
|
|
116
|
-
*/
|
|
117
|
-
previewDeploymentSuffix?: string;
|
|
118
112
|
/**
|
|
119
113
|
* Team slug for the Vercel team
|
|
120
114
|
*/
|
|
@@ -145,4 +139,4 @@ interface LocalProxyOptions {
|
|
|
145
139
|
port?: number;
|
|
146
140
|
}
|
|
147
141
|
|
|
148
|
-
export {
|
|
142
|
+
export { Application as A, Config as C, DefaultApplication as D, HostConfig as H, LocalHostConfig as L, MainConfig as M, PathGroup as P, Vercel as V, ChildConfig as a, ChildApplication as b, ApplicationId as c };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as ApplicationId, P as PathGroup } from './types-a29d224a.js';
|
|
2
|
+
|
|
3
|
+
interface ClientApplication {
|
|
4
|
+
routing?: PathGroup[];
|
|
5
|
+
default?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface ClientConfig {
|
|
8
|
+
applications: Record<ApplicationId, ClientApplication>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { ClientConfig as C };
|