Commit 75a993f7 authored by Sébastien Dubois's avatar Sébastien Dubois Committed by Tim Neutkens

Ensure NODE_ENV is production when deploying on Now (#1106)

* Ensure NODE_ENV is production when deploying on Now

* Fix custom server example instead of default one

* Fix typo
parent dbc2ceef
...@@ -445,6 +445,8 @@ Supported options: ...@@ -445,6 +445,8 @@ Supported options:
- `dir` (`string`) where the Next project is located - default `'.'` - `dir` (`string`) where the Next project is located - default `'.'`
- `quiet` (`bool`) Hide error messages containing server information - default `false` - `quiet` (`bool`) Hide error messages containing server information - default `false`
Then, change your `start` script to `NODE_ENV=production node server.js`.
### Custom `<Document>` ### Custom `<Document>`
<p><details> <p><details>
......
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