Unverified Commit b3e5392b authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Add deprecation warning for disabling output file tracing (#57467)

<img width="728" alt="image"
src="https://github.com/vercel/next.js/assets/4800338/71f95a9d-3d9e-4191-ab85-6b88311d20c5">

---------
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 2c21635c
...@@ -580,6 +580,8 @@ export interface NextConfig extends Record<string, any> { ...@@ -580,6 +580,8 @@ export interface NextConfig extends Record<string, any> {
* that are needed for deploying a production version of your application. * that are needed for deploying a production version of your application.
* *
* @see [Output File Tracing](https://nextjs.org/docs/advanced-features/output-file-tracing) * @see [Output File Tracing](https://nextjs.org/docs/advanced-features/output-file-tracing)
* @deprecated will be enabled by default and removed in Next.js 15
*
*/ */
outputFileTracing?: boolean outputFileTracing?: boolean
...@@ -600,6 +602,7 @@ export interface NextConfig extends Record<string, any> { ...@@ -600,6 +602,7 @@ export interface NextConfig extends Record<string, any> {
/** /**
* Use [SWC compiler](https://swc.rs) to minify the generated JavaScript * Use [SWC compiler](https://swc.rs) to minify the generated JavaScript
* @deprecated will be enabled by default and removed in Next.js 15
* *
* @see [SWC Minification](https://nextjs.org/docs/advanced-features/compiler#minification) * @see [SWC Minification](https://nextjs.org/docs/advanced-features/compiler#minification)
*/ */
......
...@@ -428,6 +428,16 @@ function assignDefaults( ...@@ -428,6 +428,16 @@ function assignDefaults(
) )
} }
if (result.outputFileTracing === false) {
// TODO: Remove this warning in Next.js 15
warnOptionHasBeenDeprecated(
result,
'outputFileTracing',
'Disabling outputFileTracing will not be an option in the next major version. Please report any issues you may be experiencing to https://github.com/vercel/next.js/issues',
silent
)
}
warnOptionHasBeenMovedOutOfExperimental( warnOptionHasBeenMovedOutOfExperimental(
result, result,
'relay', 'relay',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment