mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
20dc57391e
## Summary Update code block language in [error pages](https://github.com/vercel/next.js/tree/canary/errors). ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
22 lines
466 B
Plaintext
22 lines
466 B
Plaintext
---
|
|
title: 'Detected `next.config.js`, no exported configuration found'
|
|
---
|
|
|
|
## 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 filename="next.config.js"
|
|
module.exports = {
|
|
/* config options here */
|
|
}
|
|
```
|
|
|
|
## Useful Links
|
|
|
|
- [Introduction to next.config.js](/docs/pages/api-reference/config/next-config-js)
|