Skip to content

Commit

Permalink
Ensure NODE_ENV is production when deploying on Now (#1106)
Browse files Browse the repository at this point in the history
* Ensure NODE_ENV is production when deploying on Now

* Fix custom server example instead of default one

* Fix typo
  • Loading branch information
sedubois authored and timneutkens committed Feb 13, 2017
1 parent dbc2cee commit 75a993f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 445,8 @@ Supported options:
- `dir` (`string`) where the Next project is located - default `'.'`
- `quiet` (`bool`) Hide error messages containing server information - default `false`

Then, change your `start` script to `NODE_ENV=production node server.js`.

### Custom `<Document>`

<p><details>
Expand Down

0 comments on commit 75a993f

Please sign in to comment.