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:
parent
052499dd81
commit
ba14964da7
12
Readme.md
12
Readme.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue