Next.js
Next.js configuration contains invalid options
Next.js detected invalid configuration keys or values in next.config.js, often because of typos, removed options, or values of the wrong type.
Next.js
Next.js detected invalid configuration keys or values in next.config.js, often because of typos, removed options, or values of the wrong type.
Observed message
Invalid `next.config.js`
Why it happens
How to fix it
Official reference
Next.js Docs: Invalid `next.config.js`Related errors
Explore more