Skip to content

Commit

Permalink
Improve docs (#7564)
Browse files Browse the repository at this point in the history
* Update getInitialprops docs

* Update docs for prefetch

* Updated prefetch docs

* Removed hotSelfAccept from docs and othr changes

* Prefer /public

* dots dots dots dots

* Added docs for Automatic Pre-rendering

* Added a note to <Link />

* Removed 404 example

* Added references for Automatic pre-rendering

* Added a typescript section for AMP

* Executed doctoc again to add AMP sections

* Properly explain automatic pre-rendering

* Switch back to LF

* Apply corrections

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Minor corrections

* Added back some periods

* Added back some periods
  • Loading branch information
Luis Fernando Alvarez D authored and timneutkens committed Jun 14, 2019
1 parent 090a06b commit a71cb64
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 127 deletions.
1 change: 0 additions & 1 deletion README-zh-CN.md
Expand Up @@ -1476,7 +1476,6 @@ module.exports = {
- `isServer` - `Boolean` 型,为`true`使用在服务端, 为`false`使用在客户端.
- `defaultLoaders` - 对象型 ,内部加载器, 你可以如下配置
- `babel` - 对象型,配置`babel-loader`.
- `hotSelfAccept` - 对象型, `hot-self-accept-loader`配置选项.这个加载器只能用于高阶案例。如 [`@zeit/next-typescript`](https://github.com/zeit/next-plugins/tree/master/packages/next-typescript)添加顶层 typescript 页面。

`defaultLoaders.babel`使用案例如下:

Expand Down

0 comments on commit a71cb64

Please sign in to comment.