Skip to content

Commit ba14964

Browse files
authored
Update Readme.md
1 parent 052499d commit ba14964

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Readme.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,16 @@ export default class Error extends React.Component {
162162
}
163163
```
164164

165-
### Production deployment
165+
## Production deployment
166166

167-
To deploy, run:
167+
To deploy, instead of running `next`, you probably want to build ahead of time. Therefore, building and starting are separate commands:
168168

169169
```bash
170170
next build
171171
next start
172172
```
173173

174-
For example, to deploy with `now` a `package.json` like follows is recommended:
174+
For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like follows is recommended:
175175

176176
```json
177177
{
@@ -187,7 +187,11 @@ For example, to deploy with `now` a `package.json` like follows is recommended:
187187
}
188188
```
189189

190-
### In progress
190+
Then run `now` and enjoy!
191+
192+
Note: we recommend putting `.next` in `.npmignore` or `.gitigore`. Otherwise, use `files` or `now.files` to opt-into a whitelist of files you want to deploy (and obviously exclude `.next`)
193+
194+
## FAQ
191195

192196
The following tasks are planned and part of our roadmap
193197

0 commit comments

Comments
 (0)