mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
[next] fix lambda creation for i18n edge pages (#10630)
An issue similar to https://github.com/vercel/next.js/issues/44381 exists whereby vercel creates lambda functions for edge pages when i18n is configured. Fixes https://github.com/vercel/next.js/issues/42854 --------- Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
@@ -2572,6 +2572,11 @@ export function normalizeEdgeFunctionPath(
|
||||
shortPath = 'index';
|
||||
}
|
||||
}
|
||||
|
||||
if (shortPath.startsWith('pages/')) {
|
||||
shortPath = shortPath.replace(/^pages\//, '');
|
||||
}
|
||||
|
||||
return shortPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user