1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update Readme.md

This commit is contained in:
Guillermo Rauch 2016-10-19 17:58:42 -07:00 committed by GitHub
parent 052499dd81
commit ba14964da7

View file

@ -162,16 +162,16 @@ export default class Error extends React.Component {
}
```
### Production deployment
## Production deployment
To deploy, run:
To deploy, instead of running `next`, you probably want to build ahead of time. Therefore, building and starting are separate commands:
```bash
next build
next start
```
For example, to deploy with `now` a `package.json` like follows is recommended:
For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like follows is recommended:
```json
{
@ -187,7 +187,11 @@ For example, to deploy with `now` a `package.json` like follows is recommended:
}
```
### In progress
Then run `now` and enjoy!
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`)
## FAQ
The following tasks are planned and part of our roadmap