@vercel/next 3.4.1 → 3.4.3
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 +8 -1
- package/dist/utils.js +2 -1
- package/package.json +3 -3
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
|
@@ -44856,6 +44862,7 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
|
|
44856
44862
|
}
|
44857
44863
|
const rscVaryHeader = routesManifest?.rsc?.varyHeader ||
|
44858
44864
|
'__rsc__, __next_router_state_tree__, __next_router_prefetch__';
|
44865
|
+
const rscContentTypeHeader = routesManifest?.rsc?.contentTypeHeader || 'application/octet-stream';
|
44859
44866
|
prerenders[outputPathPage] = new build_utils_1.Prerender({
|
44860
44867
|
expiration: initialRevalidate,
|
44861
44868
|
lambda,
|
@@ -44891,7 +44898,7 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
|
|
44891
44898
|
...(isAppPathRoute
|
44892
44899
|
? {
|
44893
44900
|
initialHeaders: {
|
44894
|
-
'content-type':
|
44901
|
+
'content-type': rscContentTypeHeader,
|
44895
44902
|
vary: rscVaryHeader,
|
44896
44903
|
},
|
44897
44904
|
}
|
package/dist/utils.js
CHANGED
@@ -1260,6 +1260,7 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
|
|
1260
1260
|
}
|
1261
1261
|
const rscVaryHeader = routesManifest?.rsc?.varyHeader ||
|
1262
1262
|
'__rsc__, __next_router_state_tree__, __next_router_prefetch__';
|
1263
|
+
const rscContentTypeHeader = routesManifest?.rsc?.contentTypeHeader || 'application/octet-stream';
|
1263
1264
|
prerenders[outputPathPage] = new build_utils_1.Prerender({
|
1264
1265
|
expiration: initialRevalidate,
|
1265
1266
|
lambda,
|
@@ -1295,7 +1296,7 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
|
|
1295
1296
|
...(isAppPathRoute
|
1296
1297
|
? {
|
1297
1298
|
initialHeaders: {
|
1298
|
-
'content-type':
|
1299
|
+
'content-type': rscContentTypeHeader,
|
1299
1300
|
vary: rscVaryHeader,
|
1300
1301
|
},
|
1301
1302
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@types/semver": "6.0.0",
|
46
46
|
"@types/text-table": "0.2.1",
|
47
47
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "6.2.
|
48
|
+
"@vercel/build-utils": "6.2.2",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
50
|
"@vercel/routing-utils": "2.1.8",
|
51
51
|
"async-sema": "3.0.1",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "95a4dcfb33d813f1a0ef18d766232d42c876ce69"
|
75
75
|
}
|