rsnext/errors/invalid-page-config.md
2019-07-15 13:54:35 -07:00

26 lines
537 B
Markdown

# Invalid Page Config
#### Why This Error Occurred
In one of your pages you did `export const config` with an invalid value.
#### Possible Ways to Fix It
The page's config must be an object initialized directly when being exported.
This is not allowed
```js
export const config = 'hello world'
```
This is allowed
```js
export const config = { amp: true }
```
### Useful Links
- [Enabling AMP Support](https://github.com/zeit/next.js/#enabling-amp-support)
- [API Middlewares](https://github.com/zeit/next.js/#api-middlewares)