diff --git a/CHANGELOG.md b/CHANGELOG.md index 33b4dabd2e9..6a14a3c87f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ - Improve performance and reliability when deploying multiple 2nd gen functions using single builds. (#6376) - Fixed an issue where `emulators:export` did not check if the target folder is empty. (#6313) -- Fix "Could not find the next executable" on Next.js deployments (#6372) +- Fixed "Could not find the next executable" on Next.js deployments (#6372) +- Fixed issues caused by breaking changes in Next >=v13.5.0. (#6382) diff --git a/src/frameworks/next/index.ts b/src/frameworks/next/index.ts index ab4c047bc2e..852e9329755 100644 --- a/src/frameworks/next/index.ts +++ b/src/frameworks/next/index.ts @@ -594,7 +594,7 @@ async function getConfig( if (gte(version, "12.0.0")) { const { default: loadConfig } = relativeRequire(dir, "next/dist/server/config"); const { PHASE_PRODUCTION_BUILD } = relativeRequire(dir, "next/constants"); - config = await loadConfig(PHASE_PRODUCTION_BUILD, dir, null); + config = await loadConfig(PHASE_PRODUCTION_BUILD, dir); } else { try { config = await import(pathToFileURL(join(dir, "next.config.js")).toString());