2023-07-05 15:11:16 +02:00
|
|
|
---
|
|
|
|
title: Minification Disabled in Production
|
|
|
|
---
|
2019-08-13 05:13:12 +02:00
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Why This Error Occurred
|
2019-08-13 05:13:12 +02:00
|
|
|
|
|
|
|
Code optimization has been disabled for your **production build**.
|
|
|
|
The `optimization.minimize` or `optimization.minimizer` was incorrectly overridden in `next.config.js`.
|
|
|
|
|
|
|
|
This severely degrades your application's performance at runtime. It can also result in server-side-only code being downloaded by your users.
|
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Possible Ways to Fix It
|
2019-08-13 05:13:12 +02:00
|
|
|
|
|
|
|
Be sure your `next.config.js` has not modified `optimization.minimize` or `optimization.minimizer`.
|
|
|
|
|
|
|
|
You can file an issue on our GitHub if you do not understand why minification is being disabled by your `next.config.js`.
|