@vercel/gatsby-plugin-vercel-builder 2.0.113 → 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.
Files changed (2) hide show
  1. package/dist/index.js +38 -2
  2. 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,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.113",
3
+ "version": "2.0.114",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -17,7 +17,7 @@
17
17
  "esbuild": "0.14.47",
18
18
  "etag": "1.8.1",
19
19
  "fs-extra": "11.1.0",
20
- "@vercel/build-utils": "13.2.3"
20
+ "@vercel/build-utils": "13.2.4"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/etag": "1.8.0",
@@ -27,7 +27,7 @@
27
27
  "@types/react": "18.0.26",
28
28
  "jest-junit": "16.0.0",
29
29
  "typescript": "4.9.5",
30
- "@vercel/routing-utils": "5.3.0"
30
+ "@vercel/routing-utils": "5.3.1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "node ../../utils/build-builder.mjs",