File tree 1 file changed +6
-6
lines changed
packages/next-on-pages/src/buildApplication/processVercelFunctions
1 file changed +6
-6
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
- `(() => {
507
- if ($1 instanceof URL) {
508
- const { cache, ...init } = $2 ?? {};
509
- return new Request($1 , init);
506
+ `((rawUrl, rawInit ) => {
507
+ if (rawUrl instanceof URL) {
508
+ const { cache, ...init } = rawInit ?? {};
509
+ return new Request(rawUrl , init);
510
510
}
511
- return $1 ;
512
- })();` ,
511
+ return rawUrl ;
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