diff --git a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts index a8ddb00f4..42c23dfe9 100644 --- a/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts +++ b/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts @@ -246,7 +246,7 @@ async function buildFunctionFile( ); const namedExportsId = `getNamedExports_${chunkMapIdx++}`; - chunksExportsMap.set(namedExportsId, new Set([...keys.split(',')])); + chunksExportsMap.set(namedExportsId, new Set(keys.split(','))); functionImports += `import { getNamedExports as ${namedExportsId} } from '${importPath}';\n`; });