Commit ba14964d authored by Guillermo Rauch's avatar Guillermo Rauch Committed by GitHub

Update Readme.md

parent 052499dd
...@@ -162,16 +162,16 @@ export default class Error extends React.Component { ...@@ -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 ```bash
next build next build
next start 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 ```json
{ {
...@@ -187,7 +187,11 @@ For example, to deploy with `now` a `package.json` like follows is recommended: ...@@ -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 The following tasks are planned and part of our roadmap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment