diff --git a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts index 42c23dfe9..8ea6f67ff 100644 --- a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts +++ b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts @@ -191,12 +191,10 @@ async function functionifyFileContent(path: string) { return ` const namedExports = {}; export const getNamedExports = ((self, globalThis, global) => { - ${ - originalFileContents.replace( - /export\s+const\s+(\S+)\s*=/g, - 'namedExports["$1"] =', - ) - } + ${originalFileContents.replace( + /export\s+const\s+(\S+)\s*=/g, + 'namedExports["$1"] =', + )} return namedExports; }); `;