@vercel/next 4.3.1 → 4.3.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11992,8 +11992,15 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
11992
11992
  ...rscEnabled ? {
11993
11993
  initialHeaders: {
11994
11994
  ...initialHeaders,
11995
- "content-type": rscContentTypeHeader,
11996
11995
  vary: rscVaryHeader,
11996
+ ...(outputPathData || outputPathPrefetchData)?.endsWith(
11997
+ ".json"
11998
+ ) ? {
11999
+ "content-type": "application/json"
12000
+ } : {},
12001
+ ...isAppPathRoute ? {
12002
+ "content-type": rscContentTypeHeader
12003
+ } : {},
11997
12004
  ...postponedPrerender && rscDidPostponeHeader ? { [rscDidPostponeHeader]: "1" } : {}
11998
12005
  }
11999
12006
  } : {}
@@ -14791,7 +14798,7 @@ ${JSON.stringify(
14791
14798
  important: true
14792
14799
  },
14793
14800
  {
14794
- src: import_path4.default.posix.join("/", entryDirectory, "/index"),
14801
+ src: import_path4.default.posix.join("/", entryDirectory, "/index(?:/)?"),
14795
14802
  headers: {
14796
14803
  "x-matched-path": "/"
14797
14804
  },
@@ -14799,7 +14806,7 @@ ${JSON.stringify(
14799
14806
  important: true
14800
14807
  },
14801
14808
  {
14802
- src: import_path4.default.posix.join("/", entryDirectory, `/((?!index$).*)`),
14809
+ src: import_path4.default.posix.join("/", entryDirectory, `/((?!index$).*?)(?:/)?`),
14803
14810
  headers: {
14804
14811
  "x-matched-path": "/$1"
14805
14812
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -30,7 +30,7 @@
30
30
  "@types/semver": "6.0.0",
31
31
  "@types/text-table": "0.2.1",
32
32
  "@types/webpack-sources": "3.2.0",
33
- "@vercel/build-utils": "8.3.1",
33
+ "@vercel/build-utils": "8.3.2",
34
34
  "@vercel/routing-utils": "3.1.0",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",