From 09de6052199601703337b01ba1a62c2c2c15b7d5 Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Tue, 27 Sep 2022 00:36:10 +0300 Subject: [PATCH] apply code review comments by @feugy --- packages/next/build/analysis/get-page-static-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/analysis/get-page-static-info.ts b/packages/next/build/analysis/get-page-static-info.ts index 291d847d7289c..dd51d1045b50c 100644 --- a/packages/next/build/analysis/get-page-static-info.ts +++ b/packages/next/build/analysis/get-page-static-info.ts @@ -272,7 +272,7 @@ export async function getPageStaticInfo(params: { const fileContent = (await tryToReadFile(pageFilePath, !isDev)) || '' if ( - /runtime|getStaticProps|getServerSideProps|matcher|unstable_allowDynamic|export (let|var|const) config/.test( + /runtime|getStaticProps|getServerSideProps|export const config/.test( fileContent ) ) {