@vercel/config 0.0.19 → 0.0.20
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/dist/types.d.ts +100 -6
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -28,11 +28,50 @@ export interface GitDeploymentConfig {
|
|
|
28
28
|
}
|
|
29
29
|
export interface GitConfig {
|
|
30
30
|
deploymentEnabled?: boolean | GitDeploymentConfig;
|
|
31
|
+
/**
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
exclusivity?: {
|
|
35
|
+
teams?: string[];
|
|
36
|
+
};
|
|
31
37
|
}
|
|
32
38
|
export interface GithubConfig {
|
|
33
39
|
enabled?: boolean;
|
|
34
40
|
autoAlias?: boolean;
|
|
35
41
|
autoJobCancelation?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
silent?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ImageConfig {
|
|
48
|
+
sizes: number[];
|
|
49
|
+
domains?: string[];
|
|
50
|
+
formats?: ('image/avif' | 'image/webp' | 'image/jpeg' | 'image/png')[];
|
|
51
|
+
minimumCacheTTL?: number;
|
|
52
|
+
dangerouslyAllowSVG?: boolean;
|
|
53
|
+
contentSecurityPolicy?: string;
|
|
54
|
+
contentDispositionType?: 'inline' | 'attachment';
|
|
55
|
+
qualities?: number[];
|
|
56
|
+
localPatterns?: Array<{
|
|
57
|
+
pathname?: string;
|
|
58
|
+
search?: string;
|
|
59
|
+
}>;
|
|
60
|
+
remotePatterns?: Array<{
|
|
61
|
+
protocol?: 'http' | 'https';
|
|
62
|
+
hostname: string;
|
|
63
|
+
port?: string;
|
|
64
|
+
pathname?: string;
|
|
65
|
+
search?: string;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
export interface ProbeConfig {
|
|
69
|
+
path: string;
|
|
70
|
+
initialDelaySeconds?: number;
|
|
71
|
+
periodSeconds?: number;
|
|
72
|
+
timeoutSeconds?: number;
|
|
73
|
+
successThreshold?: number;
|
|
74
|
+
failureThreshold?: number;
|
|
36
75
|
}
|
|
37
76
|
/**
|
|
38
77
|
* HTTP header key/value pair
|
|
@@ -48,10 +87,13 @@ export interface Condition {
|
|
|
48
87
|
type: 'header' | 'cookie' | 'host' | 'query' | 'path';
|
|
49
88
|
key?: string;
|
|
50
89
|
value?: string | number;
|
|
51
|
-
inc?: string[];
|
|
52
|
-
pre?: string;
|
|
53
90
|
eq?: string | number;
|
|
54
91
|
neq?: string;
|
|
92
|
+
inc?: string[];
|
|
93
|
+
ninc?: string[];
|
|
94
|
+
pre?: string;
|
|
95
|
+
suf?: string;
|
|
96
|
+
re?: string;
|
|
55
97
|
gt?: number;
|
|
56
98
|
gte?: number;
|
|
57
99
|
lt?: number;
|
|
@@ -99,11 +141,37 @@ export interface WildcardDomain {
|
|
|
99
141
|
domain: string;
|
|
100
142
|
value: string;
|
|
101
143
|
}
|
|
144
|
+
export interface BuildConfig {
|
|
145
|
+
env?: Record<string, string>;
|
|
146
|
+
}
|
|
147
|
+
export interface BuildItem {
|
|
148
|
+
src?: string;
|
|
149
|
+
use: string;
|
|
150
|
+
config?: Record<string, any>;
|
|
151
|
+
}
|
|
102
152
|
export interface VercelConfig {
|
|
153
|
+
/**
|
|
154
|
+
* JSON schema URL for editor completions and validation.
|
|
155
|
+
*/
|
|
156
|
+
$schema?: string;
|
|
103
157
|
/**
|
|
104
158
|
* Aliases that will get assigned when the deployment is `READY` and the target is `production`.
|
|
105
159
|
*/
|
|
106
160
|
alias?: string | string[];
|
|
161
|
+
/**
|
|
162
|
+
* Build configuration (deprecated).
|
|
163
|
+
* @deprecated
|
|
164
|
+
*/
|
|
165
|
+
build?: BuildConfig;
|
|
166
|
+
/**
|
|
167
|
+
* Build descriptions (deprecated).
|
|
168
|
+
* @deprecated
|
|
169
|
+
*/
|
|
170
|
+
builds?: BuildItem[];
|
|
171
|
+
/**
|
|
172
|
+
* Path to a JSON file containing bulk redirect rules.
|
|
173
|
+
*/
|
|
174
|
+
bulkRedirectsPath?: string;
|
|
107
175
|
/**
|
|
108
176
|
* When set to `true`, all HTML files and Serverless Functions will have their extension removed.
|
|
109
177
|
*/
|
|
@@ -141,11 +209,31 @@ export interface VercelConfig {
|
|
|
141
209
|
* Can use router.header() and router.cacheControl() helpers.
|
|
142
210
|
*/
|
|
143
211
|
headers?: RouteType[];
|
|
212
|
+
/**
|
|
213
|
+
* Image optimization configuration.
|
|
214
|
+
*/
|
|
215
|
+
images?: ImageConfig;
|
|
216
|
+
/**
|
|
217
|
+
* A name for the deployment.
|
|
218
|
+
*/
|
|
219
|
+
name?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Probe configuration for health checks.
|
|
222
|
+
*/
|
|
223
|
+
probes?: ProbeConfig[];
|
|
224
|
+
/**
|
|
225
|
+
* When true, the source code is not stored on the platform and only the production output will be deployed.
|
|
226
|
+
*/
|
|
227
|
+
public?: boolean;
|
|
144
228
|
/**
|
|
145
229
|
* HTTP redirects configuration.
|
|
146
230
|
* Can use router.redirect() helper.
|
|
147
231
|
*/
|
|
148
232
|
redirects?: RouteType[];
|
|
233
|
+
/**
|
|
234
|
+
* An array of regions where the deployment's Serverless Functions and Edge Functions should be deployed to.
|
|
235
|
+
*/
|
|
236
|
+
regions?: string[];
|
|
149
237
|
/**
|
|
150
238
|
* HTTP rewrites configuration.
|
|
151
239
|
* Can use router.rewrite() helper.
|
|
@@ -157,10 +245,20 @@ export interface VercelConfig {
|
|
|
157
245
|
* Cannot be mixed with headers, redirects, or rewrites.
|
|
158
246
|
*/
|
|
159
247
|
routes?: RouteType[];
|
|
248
|
+
/**
|
|
249
|
+
* Scope (user or team) for deployment.
|
|
250
|
+
* @private
|
|
251
|
+
*/
|
|
252
|
+
scope?: string;
|
|
160
253
|
/**
|
|
161
254
|
* Wildcard domain configuration.
|
|
162
255
|
*/
|
|
163
256
|
wildcard?: WildcardDomain[];
|
|
257
|
+
/**
|
|
258
|
+
* Version of the configuration schema.
|
|
259
|
+
* @private
|
|
260
|
+
*/
|
|
261
|
+
version?: number;
|
|
164
262
|
/**
|
|
165
263
|
* The build command for this project. When `null`, automatically detected.
|
|
166
264
|
*/
|
|
@@ -201,10 +299,6 @@ export interface VercelConfig {
|
|
|
201
299
|
* Enables Bun for the project and specifies the version to use.
|
|
202
300
|
*/
|
|
203
301
|
bunVersion?: string;
|
|
204
|
-
/**
|
|
205
|
-
* Node.js version for this project.
|
|
206
|
-
*/
|
|
207
|
-
nodeVersion?: string;
|
|
208
302
|
}
|
|
209
303
|
/**
|
|
210
304
|
* Runtime placeholder for VercelConfig to allow named imports.
|