26 lines
537 B
Markdown
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)
|