@vercel/gatsby-plugin-vercel-builder 2.0.112 → 2.0.114
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 +38 -2
- package/package.json +5 -5
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,17 @@ 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
|
+
}
|
|
1867
1883
|
}
|
|
1868
1884
|
},
|
|
1869
1885
|
{
|
|
@@ -1907,6 +1923,16 @@ var require_schemas = __commonJS({
|
|
|
1907
1923
|
type: "integer",
|
|
1908
1924
|
minimum: 100,
|
|
1909
1925
|
maximum: 999
|
|
1926
|
+
},
|
|
1927
|
+
env: {
|
|
1928
|
+
description: "An array of environment variable names that should be replaced at runtime in the destination",
|
|
1929
|
+
type: "array",
|
|
1930
|
+
minItems: 1,
|
|
1931
|
+
maxItems: 64,
|
|
1932
|
+
items: {
|
|
1933
|
+
type: "string",
|
|
1934
|
+
maxLength: 256
|
|
1935
|
+
}
|
|
1910
1936
|
}
|
|
1911
1937
|
}
|
|
1912
1938
|
}
|
|
@@ -1943,7 +1969,17 @@ var require_schemas = __commonJS({
|
|
|
1943
1969
|
maximum: 999
|
|
1944
1970
|
},
|
|
1945
1971
|
has: hasSchema,
|
|
1946
|
-
missing: hasSchema
|
|
1972
|
+
missing: hasSchema,
|
|
1973
|
+
env: {
|
|
1974
|
+
description: "An array of environment variable names that should be replaced at runtime in the destination",
|
|
1975
|
+
type: "array",
|
|
1976
|
+
minItems: 1,
|
|
1977
|
+
maxItems: 64,
|
|
1978
|
+
items: {
|
|
1979
|
+
type: "string",
|
|
1980
|
+
maxLength: 256
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1947
1983
|
}
|
|
1948
1984
|
}
|
|
1949
1985
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/gatsby-plugin-vercel-builder",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.114",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@sinclair/typebox": "0.25.24",
|
|
17
|
-
"@vercel/build-utils": "13.2.2",
|
|
18
17
|
"esbuild": "0.14.47",
|
|
19
18
|
"etag": "1.8.1",
|
|
20
|
-
"fs-extra": "11.1.0"
|
|
19
|
+
"fs-extra": "11.1.0",
|
|
20
|
+
"@vercel/build-utils": "13.2.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/etag": "1.8.0",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@types/jest": "27.5.1",
|
|
26
26
|
"@types/node": "14.18.33",
|
|
27
27
|
"@types/react": "18.0.26",
|
|
28
|
-
"@vercel/routing-utils": "5.3.0",
|
|
29
28
|
"jest-junit": "16.0.0",
|
|
30
|
-
"typescript": "4.9.5"
|
|
29
|
+
"typescript": "4.9.5",
|
|
30
|
+
"@vercel/routing-utils": "5.3.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "node ../../utils/build-builder.mjs",
|