From 243e87a78f87a2de9d836d6e1101347850294ef4 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Sun, 21 Jan 2024 10:17:27 +0400 Subject: [PATCH 1/2] remove obsolete warnings --- .../webpack/loaders/next-flight-css-loader.ts | 13 +------------ packages/next/src/server/config.ts | 19 ------------------- packages/next/types/index.d.ts | 10 ---------- 3 files changed, 1 insertion(+), 41 deletions(-) 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 af061eec7bd97..a19a76f601f04 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 Date: Sun, 21 Jan 2024 12:11:31 +0400 Subject: [PATCH 2/2] remove obsolete warnings p2 --- packages/next/src/build/utils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/next/src/build/utils.ts b/packages/next/src/build/utils.ts index 91818fd3d717e..7d19ecbb821b5 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