You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Compile and deploy your Next.js app to production with ZEIT Now and
4
4
5
5
# Deployment
6
6
7
-
To go to production Next.js has a `next build` command. When ran it will compile your project and automatically apply numerous optimizations.
7
+
To go to production Next.js has a `next build` command. When run, it will compile your project and automatically apply numerous optimizations.
8
8
9
9
## Prepare your package.json
10
10
@@ -46,9 +46,9 @@ The [hybrid pages](/docs/basic-features/pages.md) approach is fully supported ou
46
46
47
47
In case of [Static Generation](/docs/basic-features/pages.md#static-generation) the page will automatically be served from the ZEIT Now Smart CDN.
48
48
49
-
When the page is using [Server-Side Rendering](/docs/basic-features/pages.md#server-side-rendering) it will become an isolated serverless function automatically. This allows the page rendering to scale automatically and be independent, errors on one page won't affect another.
49
+
When the page is using [Server-Side Rendering](/docs/basic-features/pages.md#server-side-rendering) it will become an isolated serverless function automatically. This allows the page rendering to scale automatically and be independent—errors on one page won't affect another.
50
50
51
-
API routes will also become separate serverless functions that execute and scale separately from eachother.
51
+
API routes will also become separate serverless functions that execute and scale separately from each other.
52
52
53
53
### CDN + HTTPS by default
54
54
@@ -60,7 +60,7 @@ HTTPS is enabled by default and doesn't require extra configuration.
60
60
61
61
#### From a git repository
62
62
63
-
You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zeit.co/new), or [Bitbucket](https://zeit.co/new) through the [web interface](https://zeit.co/new). This will automatically set up deployment previews for pull-requests and commits.
63
+
You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zeit.co/new), or [Bitbucket](https://zeit.co/new) through the [web interface](https://zeit.co/new). This will automatically set up deployment previews for pullrequests and commits.
64
64
65
65
#### Through the ZEIT Now CLI
66
66
@@ -93,7 +93,7 @@ Generally you'll have to follow these steps to deploy to production:
93
93
- Potentially copy the `.next`, `node_modules`, and `package.json` to your server.
94
94
- Run `npm run start` (runs `next start`) on the server
95
95
96
-
In case you're doing a full static export using `next export` the steps are slightly different and doesn't involve using `next start`:
96
+
In case you're doing a full static export using `next export` the steps are slightly different and don't involve using `next start`:
97
97
98
98
- Run `npm install`
99
99
- Run `npm run build` (runs `next build && next export`)
0 commit comments