diff --git a/packages/next/src/build/utils.ts b/packages/next/src/build/utils.ts index 91818fd3d717ea..7d19ecbb821b58 100644 --- a/packages/next/src/build/utils.ts +++ b/packages/next/src/build/utils.ts @@ -1733,12 +1733,6 @@ export async function isPageStatic({ ? {} : componentsResult.pageConfig - if (config.unstable_includeFiles || config.unstable_excludeFiles) { - Log.warn( - `unstable_includeFiles/unstable_excludeFiles has been removed in favor of the option in next.config.js.\nSee more info here: https://nextjs.org/docs/advanced-features/output-file-tracing#caveats` - ) - } - let isStatic = false if (!hasStaticProps && !hasGetInitialProps && !hasServerProps) { isStatic = true diff --git a/packages/next/src/build/webpack/loaders/next-flight-css-loader.ts b/packages/next/src/build/webpack/loaders/next-flight-css-loader.ts index af061eec7bd979..a19a76f601f04b 100644 --- a/packages/next/src/build/webpack/loaders/next-flight-css-loader.ts +++ b/packages/next/src/build/webpack/loaders/next-flight-css-loader.ts @@ -15,21 +15,10 @@ const NextServerCSSLoader: webpack.LoaderDefinitionFunction