From ba14964da75aa179a613182f7472fb113c3e8ca5 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Wed, 19 Oct 2016 17:58:42 -0700 Subject: [PATCH] Update Readme.md --- Readme.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 221b1d3a..b5d4b4e9 100644 --- a/Readme.md +++ b/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