@vercel/next 3.4.1 → 3.4.2
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 +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -40385,14 +40385,20 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40385
40385
|
}
|
40386
40386
|
const env = { ...spawnOpts.env };
|
40387
40387
|
env.NEXT_EDGE_RUNTIME_PROVIDER = 'vercel';
|
40388
|
+
env.NEXT_PUBLIC_EDGE_RUNTIME_PROVIDER = env.NEXT_EDGE_RUNTIME_PROVIDER;
|
40388
40389
|
if (target) {
|
40389
40390
|
// Since version v10.0.8-canary.15 of Next.js the NEXT_PRIVATE_TARGET env
|
40390
40391
|
// value can be used to override the target set in next.config.js
|
40391
40392
|
// this helps us catch cases where we can't locate the next.config.js
|
40392
40393
|
// correctly
|
40393
40394
|
env.NEXT_PRIVATE_TARGET = target;
|
40395
|
+
env.NEXT_PUBLIC_TARGET = target;
|
40394
40396
|
}
|
40397
|
+
// Only NEXT_PUBLIC_ is considered for turbo/nx cache keys
|
40398
|
+
// and caches may not have the correct trace root so we
|
40399
|
+
// need to ensure this included in the cache key
|
40395
40400
|
env.NEXT_PRIVATE_OUTPUT_TRACE_ROOT = baseDir;
|
40401
|
+
env.NEXT_PUBLIC_OUTPUT_TRACE_ROOT = baseDir;
|
40396
40402
|
if (isServerMode) {
|
40397
40403
|
// when testing with jest NODE_ENV will be set to test so ensure
|
40398
40404
|
// it is production when running the build command
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "74f6cf31fc09923ec6f6412fea7459d425fe0f7a"
|
75
75
|
}
|