@vercel/next 4.20.1 → 4.20.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 CHANGED
@@ -952,7 +952,7 @@ var require_superstatic = __commonJS({
952
952
  if (typeof r.destination === "string") {
953
953
  route = { src, dest: interpolate(r.destination), check: true };
954
954
  } else {
955
- const destination = { ...r.destination };
955
+ const destination = { ...r.destination, type: "service" };
956
956
  if (typeof destination.path === "string") {
957
957
  destination.path = interpolate(destination.path);
958
958
  }
@@ -60,7 +60,7 @@ var serve = (handler) => async (req, res) => {
60
60
  });
61
61
  };
62
62
  module.exports = serve(nextServer.getRequestHandler());
63
- if ((conf.experimental?.ppr || conf.experimental?.cacheComponents) && "getRequestHandlerWithMetadata" in nextServer && typeof nextServer.getRequestHandlerWithMetadata === "function") {
63
+ if ((conf.experimental?.ppr || conf.experimental?.cacheComponents || conf.cacheComponents) && "getRequestHandlerWithMetadata" in nextServer && typeof nextServer.getRequestHandlerWithMetadata === "function") {
64
64
  module.exports.getRequestHandlerWithMetadata = (metadata) => serve(nextServer.getRequestHandlerWithMetadata(metadata));
65
65
  }
66
66
  if (process.env.NEXT_PRIVATE_PRELOAD_ENTRIES) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -53,8 +53,8 @@
53
53
  "text-table": "0.2.0",
54
54
  "vitest": "2.0.3",
55
55
  "webpack-sources": "3.2.3",
56
- "@vercel/routing-utils": "6.3.1",
57
- "@vercel/build-utils": "13.32.1"
56
+ "@vercel/routing-utils": "6.4.0",
57
+ "@vercel/build-utils": "13.32.2"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node build.mjs",