@vercel/redwood 2.4.6 → 2.4.7
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/index.js +47 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -918,6 +918,9 @@ var require_superstatic = __commonJS({
|
|
|
918
918
|
headers: { Location: loc },
|
|
919
919
|
status
|
|
920
920
|
};
|
|
921
|
+
if (typeof r.env !== "undefined") {
|
|
922
|
+
route.env = r.env;
|
|
923
|
+
}
|
|
921
924
|
if (r.has) {
|
|
922
925
|
route.has = r.has;
|
|
923
926
|
}
|
|
@@ -945,6 +948,9 @@ var require_superstatic = __commonJS({
|
|
|
945
948
|
internalParamNames
|
|
946
949
|
);
|
|
947
950
|
const route = { src, dest, check: true };
|
|
951
|
+
if (typeof r.env !== "undefined") {
|
|
952
|
+
route.env = r.env;
|
|
953
|
+
}
|
|
948
954
|
if (r.has) {
|
|
949
955
|
route.has = r.has;
|
|
950
956
|
}
|
|
@@ -1863,7 +1869,21 @@ var require_schemas = __commonJS({
|
|
|
1863
1869
|
has: hasSchema,
|
|
1864
1870
|
missing: hasSchema,
|
|
1865
1871
|
mitigate: mitigateSchema,
|
|
1866
|
-
transforms: transformsSchema
|
|
1872
|
+
transforms: transformsSchema,
|
|
1873
|
+
env: {
|
|
1874
|
+
description: "An array of environment variable names that should be replaced at runtime in the destination or headers",
|
|
1875
|
+
type: "array",
|
|
1876
|
+
minItems: 1,
|
|
1877
|
+
maxItems: 64,
|
|
1878
|
+
items: {
|
|
1879
|
+
type: "string",
|
|
1880
|
+
maxLength: 256
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
respectOriginCacheControl: {
|
|
1884
|
+
description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",
|
|
1885
|
+
type: "boolean"
|
|
1886
|
+
}
|
|
1867
1887
|
}
|
|
1868
1888
|
},
|
|
1869
1889
|
{
|
|
@@ -1907,6 +1927,20 @@ var require_schemas = __commonJS({
|
|
|
1907
1927
|
type: "integer",
|
|
1908
1928
|
minimum: 100,
|
|
1909
1929
|
maximum: 999
|
|
1930
|
+
},
|
|
1931
|
+
env: {
|
|
1932
|
+
description: "An array of environment variable names that should be replaced at runtime in the destination",
|
|
1933
|
+
type: "array",
|
|
1934
|
+
minItems: 1,
|
|
1935
|
+
maxItems: 64,
|
|
1936
|
+
items: {
|
|
1937
|
+
type: "string",
|
|
1938
|
+
maxLength: 256
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
respectOriginCacheControl: {
|
|
1942
|
+
description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",
|
|
1943
|
+
type: "boolean"
|
|
1910
1944
|
}
|
|
1911
1945
|
}
|
|
1912
1946
|
}
|
|
@@ -1943,7 +1977,17 @@ var require_schemas = __commonJS({
|
|
|
1943
1977
|
maximum: 999
|
|
1944
1978
|
},
|
|
1945
1979
|
has: hasSchema,
|
|
1946
|
-
missing: hasSchema
|
|
1980
|
+
missing: hasSchema,
|
|
1981
|
+
env: {
|
|
1982
|
+
description: "An array of environment variable names that should be replaced at runtime in the destination",
|
|
1983
|
+
type: "array",
|
|
1984
|
+
minItems: 1,
|
|
1985
|
+
maxItems: 64,
|
|
1986
|
+
items: {
|
|
1987
|
+
type: "string",
|
|
1988
|
+
maxLength: 256
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1947
1991
|
}
|
|
1948
1992
|
}
|
|
1949
1993
|
};
|
|
@@ -2462,7 +2506,7 @@ var build = async ({
|
|
|
2462
2506
|
const { installCommand, buildCommand } = config;
|
|
2463
2507
|
const mountpoint = (0, import_path.dirname)(entrypoint);
|
|
2464
2508
|
const entrypointFsDirname = (0, import_path.join)(workPath, mountpoint);
|
|
2465
|
-
const nodeVersion = await (0, import_build_utils.
|
|
2509
|
+
const nodeVersion = await (0, import_build_utils.getRuntimeNodeVersion)(
|
|
2466
2510
|
entrypointFsDirname,
|
|
2467
2511
|
void 0,
|
|
2468
2512
|
config,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/redwood",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"execa": "3.2.0",
|
|
26
26
|
"fs-extra": "11.1.0",
|
|
27
27
|
"jest-junit": "16.0.0",
|
|
28
|
-
"@vercel/
|
|
29
|
-
"@vercel/
|
|
28
|
+
"@vercel/build-utils": "13.2.7",
|
|
29
|
+
"@vercel/routing-utils": "5.3.2"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "node ../../utils/build-builder.mjs",
|