We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce25be commit 5850426Copy full SHA for 5850426
packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts
@@ -503,13 +503,13 @@ function fixFunctionContents(contents: string): string {
503
// https://github.com/vercel/next.js/blob/9ec37c12/packages/next/src/compiled/react/cjs/react.react-server.production.js#L87
504
contents = contents.replace(
505
/([\w$]+) instanceof URL\?new Request\([\w$]+,([\w$]+)\):[\w$]+;/gm,
506
- `(() => {
+ `(($1, $2) => {
507
if ($1 instanceof URL) {
508
const { cache, ...init } = $2 ?? {};
509
return new Request($1, init);
510
}
511
return $1;
512
- })();`,
+ })($1, $2);`,
513
);
514
515
// TODO: Remove once https://github.com/vercel/next.js/issues/58265 is fixed.
0 commit comments