@vercel/next 4.15.35 → 4.15.36

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.
@@ -223,8 +223,8 @@ const getHandlerSource = (ctx) => `
223
223
  }
224
224
  return async function handler(req, res, internalMetadata) {
225
225
  try {
226
- const initURL = `https://${req.headers.host || "localhost"}${req.url}`;
227
226
  const parsedUrl = new URL(req.url || "/", "http://n");
227
+ const initURL = `https://${req.headers.host || "localhost"}${parsedUrl.pathname}${parsedUrl.search}`;
228
228
  let urlPathname = typeof req.headers["x-matched-path"] === "string" ? fixMojibake(req.headers["x-matched-path"]) : void 0;
229
229
  if (typeof urlPathname !== "string") {
230
230
  urlPathname = parsedUrl.pathname || "/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.35",
3
+ "version": "4.15.36",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -16,7 +16,7 @@
16
16
  "@vercel/nft": "1.1.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@next-community/adapter-vercel": "0.0.1-beta.9",
19
+ "@next-community/adapter-vercel": "0.0.1-beta.10",
20
20
  "@types/aws-lambda": "8.10.19",
21
21
  "@types/buffer-crc32": "0.2.0",
22
22
  "@types/bytes": "3.1.1",
@@ -53,8 +53,8 @@
53
53
  "test-listen": "1.1.0",
54
54
  "text-table": "0.2.0",
55
55
  "webpack-sources": "3.2.3",
56
- "@vercel/routing-utils": "6.0.0",
57
- "@vercel/build-utils": "13.6.0"
56
+ "@vercel/build-utils": "13.6.1",
57
+ "@vercel/routing-utils": "6.0.0"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node build.mjs",