nitro-nightly 3.0.1-20251105-121912-6baa4efb → 3.0.1-20251105-152910-c0ee44bf

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.
@@ -3,11 +3,13 @@ import { useNitroApp } from "nitro/runtime";
3
3
  const nitroApp = useNitroApp();
4
4
  export default { fetch(req, context) {
5
5
  // Check for ISR request
6
- const isrRoute = req.headers.get("x-now-route-matches");
7
- if (isrRoute) {
8
- const url = new URL(req.url);
9
- url.pathname = decodeURIComponent(isrRoute);
10
- req = new Request(url.toString(), req);
6
+ const query = req.headers.get("x-now-route-matches");
7
+ if (query) {
8
+ const urlParam = new URLSearchParams(query).get("url");
9
+ if (urlParam) {
10
+ const url = new URL(decodeURIComponent(urlParam), req.url).href;
11
+ req = new Request(url, req);
12
+ }
11
13
  }
12
14
  // srvx compatibility
13
15
  req.runtime ??= { name: "vercel" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251105-121912-6baa4efb",
3
+ "version": "3.0.1-20251105-152910-c0ee44bf",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",