Back to Next Js

Detected `next.config.js`, no exported configuration found

errors/empty-configuration.mdx

16.2.5388 B
Original Source

Why This Warning Occurred

There is no object exported from next.config.js or the object is empty.

Possible Ways to Fix It

Check if you correctly export configuration in next.config.js file:

js
module.exports = {
  /* config options here */
}