@vercel/config 0.0.26 → 0.0.27
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/router.d.ts +0 -2
- package/dist/router.js +0 -3
- package/package.json +1 -1
package/dist/router.d.ts
CHANGED
|
@@ -272,8 +272,6 @@ export interface Route {
|
|
|
272
272
|
has?: Condition[];
|
|
273
273
|
/** Optional conditions that must be absent */
|
|
274
274
|
missing?: Condition[];
|
|
275
|
-
/** If true, this is a redirect (status defaults to 308 or specified) */
|
|
276
|
-
redirect?: boolean;
|
|
277
275
|
/** Status code for the response */
|
|
278
276
|
status?: number;
|
|
279
277
|
/** Headers to set (alternative to using transforms) */
|
package/dist/router.js
CHANGED
|
@@ -223,7 +223,6 @@ class Router {
|
|
|
223
223
|
const route = {
|
|
224
224
|
src: source,
|
|
225
225
|
dest: destination,
|
|
226
|
-
redirect: true,
|
|
227
226
|
status: statusCode || (permanent ? 308 : 307),
|
|
228
227
|
transforms,
|
|
229
228
|
};
|
|
@@ -246,7 +245,6 @@ class Router {
|
|
|
246
245
|
const route = {
|
|
247
246
|
src: source,
|
|
248
247
|
dest: destination,
|
|
249
|
-
redirect: true,
|
|
250
248
|
status: statusCode || (permanent ? 308 : 307),
|
|
251
249
|
env: destEnvVars,
|
|
252
250
|
};
|
|
@@ -396,7 +394,6 @@ class Router {
|
|
|
396
394
|
const route = {
|
|
397
395
|
src: redirectRule.source,
|
|
398
396
|
dest: redirectRule.destination,
|
|
399
|
-
redirect: true,
|
|
400
397
|
status: redirectRule.statusCode || (redirectRule.permanent ? 308 : 307),
|
|
401
398
|
};
|
|
402
399
|
if (redirectRule.has)
|
package/package.json
CHANGED