Note the config
key is reserved (#7840)
Closes https://github.com/zeit/next.js/issues/7834
This commit is contained in:
parent
a137447151
commit
c650dca307
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@ Next.js will now ignore usage `@zeit/next-typescript` and warn you to remove it.
|
|||
|
||||
Usage of [`fork-ts-checker-webpack-plugin`](https://github.com/Realytics/fork-ts-checker-webpack-plugin/issues) should also be removed from your `next.config.js`.
|
||||
|
||||
#### The `config` key is now a special export on a page
|
||||
|
||||
You may no longer export a custom variable named `config` from a page (i.e. `export { config }` / `export const config ...`).
|
||||
This exported variable is now used to specify page-level Next.js configuration like Opt-in AMP and API Route features.
|
||||
|
||||
You must rename a non-Next.js-purposed `config` export to something different.
|
||||
|
||||
#### `next/dynamic` no longer renders "loading..." by default while loading
|
||||
|
||||
Dynamic components will not render anything by default while loading. You can still customize this behavior by setting the `loading` property:
|
||||
|
|
Loading…
Reference in a new issue