@vercel/next 3.1.15 → 3.1.16

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 +6 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -42724,14 +42724,13 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
42724
42724
  entryDirectory,
42725
42725
  outputDirectory,
42726
42726
  }, null, 2));
42727
- Object.keys(process.env)
42728
- .filter(key => key.startsWith('VERCEL_'))
42729
- .forEach(key => {
42730
- const newKey = `NEXT_PUBLIC_${key}`;
42731
- if (!(newKey in process.env)) {
42732
- process.env[newKey] = process.env[key];
42733
- }
42727
+ const prefixedEnvs = (0, build_utils_1.getPrefixedEnvVars)({
42728
+ envPrefix: 'NEXT_PUBLIC_',
42729
+ envs: process.env,
42734
42730
  });
42731
+ for (const [key, value] of Object.entries(prefixedEnvs)) {
42732
+ process.env[key] = value;
42733
+ }
42735
42734
  await (0, build_utils_1.download)(files, workPath, meta);
42736
42735
  if (config.rootDirectory) {
42737
42736
  // this must come after the download step since files outside
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -44,7 +44,7 @@
44
44
  "@types/semver": "6.0.0",
45
45
  "@types/text-table": "0.2.1",
46
46
  "@types/webpack-sources": "3.2.0",
47
- "@vercel/build-utils": "5.2.0",
47
+ "@vercel/build-utils": "5.3.0",
48
48
  "@vercel/nft": "0.21.0",
49
49
  "@vercel/routing-utils": "2.0.2",
50
50
  "async-sema": "3.0.1",
@@ -69,5 +69,5 @@
69
69
  "typescript": "4.5.2",
70
70
  "webpack-sources": "3.2.3"
71
71
  },
72
- "gitHead": "32afd67d29d46f67027091ab9695d8ff330355b5"
72
+ "gitHead": "47e3381c6df661168e8be335cc58df03f3cf2414"
73
73
  }