Skip to content

Commit 5a32c9c

Browse files
Luis Alvarez DTimer
Luis Alvarez D
andauthoredFeb 3, 2020
Update create app docs (#10382)
* Updated links * Added utm Co-authored-by: Joe Haddad <[email protected]>
1 parent a433b9b commit 5a32c9c

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed
 

‎packages/create-next-app/templates/default/README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ After creating an app, it should look something like:
2828
```
2929
.
3030
├── README.md
31-
├── components
32-
│ ├── head.js
33-
│ └── nav.js
3431
├── node_modules
3532
│ ├── [...]
3633
├── package.json
@@ -54,7 +51,7 @@ Out of the box, we get:
5451
- Server rendering and indexing of `./pages/`
5552
- Static file serving. `./public/` is mapped to `/`
5653

57-
Read more about [Next's Routing](https://github.com/zeit/next.js#routing)
54+
Read more about [Next's Routing](https://nextjs.org/docs/routing/introduction)
5855

5956
## Available Scripts
6057

@@ -78,7 +75,7 @@ It correctly bundles React in production mode and optimizes the build for the be
7875
Starts the application in production mode.
7976
The application should be compiled with \`next build\` first.
8077

81-
See the section in Next docs about [deployment](https://github.com/zeit/next.js/wiki/Deployment) for more information.
78+
See the section in Next docs about [deployment](https://nextjs.org/docs/deployment) for more information.
8279

8380
## Using CSS
8481

@@ -107,7 +104,7 @@ export default () => (
107104
)
108105
```
109106

110-
Read more about [Next's CSS features](https://github.com/zeit/next.js#css).
107+
Read more about [Next's CSS features](https://nextjs.org/docs/basic-features/built-in-css-support).
111108

112109
## Adding Components
113110

@@ -147,15 +144,15 @@ For the initial page load, `getInitialProps` will execute on the server only. `g
147144

148145
_Note: `getInitialProps` can **not** be used in children components. Only in `./pages/`._
149146

150-
Read more about [fetching data and the component lifecycle](https://github.com/zeit/next.js#fetching-data-and-component-lifecycle)
147+
Read more about [fetching data and the component lifecycle](https://nextjs.org/docs/basic-features/data-fetching)
151148

152149
## Syntax Highlighting
153150

154151
To configure the syntax highlighting in your favorite text editor, head to the [relevant Babel documentation page](https://babeljs.io/docs/editors) and follow the instructions. Some of the most popular editors are covered.
155152

156153
## Deploy to Now
157154

158-
[now](https://zeit.co/now) offers a zero-configuration single-command deployment.
155+
[ZEIT Now](https://zeit.co/home?utm_source=create-next-app&utm_medium=referral&utm_campaign=Create%20Next%20App) offers a zero-configuration single-command deployment.
159156

160157
1. Install the `now` command-line tool either via npm `npm install -g now` or Yarn `yarn global add now`.
161158

@@ -167,7 +164,7 @@ To configure the syntax highlighting in your favorite text editor, head to the [
167164
168165
Paste that URL into your browser when the build is complete, and you will see your deployed app.
169166
170-
You can find more details about [`now` here](https://zeit.co/now).
167+
You can find more details about [`ZEIT Now` here](https://zeit.co/home?utm_source=create-next-app&utm_medium=referral&utm_campaign=Create%20Next%20App).
171168
172169
## Something Missing?
173170

‎packages/create-next-app/templates/default/pages/index.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ const Home = () => (
3636
<p>Discover and deploy boilerplate example Next.js projects.</p>
3737
</a>
3838

39-
<a href="https://zeit.co/new/nextjs" className="card">
39+
<a
40+
href="https://zeit.co/new?utm_source=create-next-app&utm_medium=referral&utm_campaign=Create%20Next%20App"
41+
className="card"
42+
>
4043
<h3>Deploy &rarr;</h3>
4144
<p>
4245
Instantly deploy your Next.js site to a public URL with ZEIT Now.
@@ -46,7 +49,11 @@ const Home = () => (
4649
</main>
4750

4851
<footer>
49-
<a href="https://zeit.co" target="_blank" rel="noopener noreferrer">
52+
<a
53+
href="https://zeit.co?utm_source=create-next-app&utm_medium=referral&utm_campaign=Create%20Next%20App"
54+
target="_blank"
55+
rel="noopener noreferrer"
56+
>
5057
Powered by <img src="/zeit.svg" alt="ZEIT Logo" />
5158
</a>
5259
</footer>

0 commit comments

Comments
 (0)
Please sign in to comment.