2023-07-05 15:11:16 +02:00
|
|
|
---
|
|
|
|
title: 'Detected `next.config.js`, no exported configuration found'
|
|
|
|
---
|
2020-01-29 09:12:30 +01:00
|
|
|
|
|
|
|
#### Why This Warning Occurred
|
|
|
|
|
|
|
|
There is no object exported from next.config.js or the object is empty.
|
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Possible Ways to Fix It
|
2020-01-29 09:12:30 +01:00
|
|
|
|
|
|
|
Check if you correctly export configuration in `next.config.js` file:
|
|
|
|
|
|
|
|
```
|
|
|
|
module.exports = {
|
|
|
|
/* config options here */
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Useful Links
|
2020-01-29 09:12:30 +01:00
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
- [Introduction to next.config.js](/docs/pages/api-reference/next-config-js)
|