From 126eb498675e6f1a27d568672c2a9da49eec09f9 Mon Sep 17 00:00:00 2001 From: Gary Meehan Date: Wed, 13 Feb 2019 15:53:04 +0000 Subject: [PATCH] Fix README links (#6284) --- README-zh-CN.md | 8 ++++---- packages/next/README.md | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README-zh-CN.md b/README-zh-CN.md index 2e3a7a37..356cd3c2 100644 --- a/README-zh-CN.md +++ b/README-zh-CN.md @@ -765,7 +765,7 @@ class MyLink extends React.Component { const { router } = this.props router.prefetch('/dynamic') } - + render() { const { router } = this.props return ( @@ -773,7 +773,7 @@ class MyLink extends React.Component { setTimeout(() => router.push('/dynamic'), 100)}> A route transition will happen after 100ms - + ) } } @@ -1343,7 +1343,7 @@ module.exports = { ```js // Example next.config.js for adding a loader that depends on babel-loader -// This source was taken from the @zeit/next-mdx plugin source: +// This source was taken from the @zeit/next-mdx plugin source: // https://github.com/zeit/next-plugins/blob/master/packages/next-mdx module.exports = { webpack: (config, {}) => { @@ -1464,7 +1464,7 @@ module.exports = { } ``` -注意:Next.js 运行时将会自动添加前缀,但是对于`/static`是没有效果的,如果你想这些静态资源也能使用 CDN,你需要自己添加前缀。有一个方法可以判断你的环境来加前缀,如 [in this example](https://github.com/zeit/next.js/tree/master/examples/with-universal-configuration)。 +注意:Next.js 运行时将会自动添加前缀,但是对于`/static`是没有效果的,如果你想这些静态资源也能使用 CDN,你需要自己添加前缀。有一个方法可以判断你的环境来加前缀,如 [in this example](https://github.com/zeit/next.js/tree/master/examples/with-universal-configuration-build-time)。 ## 项目部署 diff --git a/packages/next/README.md b/packages/next/README.md index 729dd49b..a1bb7eb6 100644 --- a/packages/next/README.md +++ b/packages/next/README.md @@ -836,7 +836,7 @@ You can add `prefetch` prop to any `` and Next.js will prefetch those page ```jsx import Link from 'next/link' -function Header() { +function Header() { return (