rsnext/errors/invalid-page-config.md
stefanprobst 279ae19c7e
docs: update links to docs site (#14305)
this updates some links to the docs site to their new location
2020-06-18 09:54:07 +00:00

26 lines
552 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://nextjs.org/docs/advanced-features/amp-support/introduction)
- [API Middlewares](https://nextjs.org/docs/api-routes/api-middlewares)