File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/next-on-pages/src/buildApplication/processVercelFunctions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -503,13 +503,13 @@ function fixFunctionContents(contents: string): string {
503
503
// https://github.com/vercel/next.js/blob/9ec37c12/packages/next/src/compiled/react/cjs/react.react-server.production.js#L87
504
504
contents = contents . replace (
505
505
/ ( [ \w $ ] + ) i n s t a n c e o f U R L \? n e w R e q u e s t \( [ \w $ ] + , ( [ \w $ ] + ) \) : [ \w $ ] + ; / gm,
506
- `(() => {
506
+ `(($1, $2 ) => {
507
507
if ($1 instanceof URL) {
508
508
const { cache, ...init } = $2 ?? {};
509
509
return new Request($1, init);
510
510
}
511
511
return $1;
512
- })();` ,
512
+ })($1, $2 );` ,
513
513
) ;
514
514
515
515
// TODO: Remove once https://github.com/vercel/next.js/issues/58265 is fixed.
You can’t perform that action at this time.
0 commit comments