diff --git a/packages/next/src/build/analysis/get-page-static-info.ts b/packages/next/src/build/analysis/get-page-static-info.ts index 15d81aafc85d0..31ec989d51501 100644 --- a/packages/next/src/build/analysis/get-page-static-info.ts +++ b/packages/next/src/build/analysis/get-page-static-info.ts @@ -509,8 +509,7 @@ export async function getPageStaticInfo(params: { // `export config` doesn't exist, or other unknown error throw by swc, silence them } - let extraConfig: Record | undefined - extraConfig = {} + let extraConfig: Record = {} if (extraProperties && pageType === 'app') { for (const prop of extraProperties) {