1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add note about NODE_ENV being set automatically

This commit is contained in:
Tim Neutkens 2017-10-29 00:39:45 +02:00
parent 152c2c2af3
commit 72827d25cb

View file

@ -1035,6 +1035,8 @@ Then run `now` and enjoy!
Next.js can be deployed to other hosting solutions too. Please have a look at the ['Deployment'](https://github.com/zeit/next.js/wiki/Deployment) section of the wiki.
Note: `NODE_ENV` is properly configured by the `next` subcommands, if absent, to maximize performance. if youre using Next.js [programmatically](#custom-server-and-routing), its your responsibility to set `NODE_ENV=production` manually!
Note: we recommend putting `.next`, or your custom dist folder (Please have a look at ['Custom Config'](https://github.com/zeit/next.js#custom-configuration). You can set a custom folder in config, `.npmignore`, or `.gitignore`. Otherwise, use `files` or `now.files` to opt-into a whitelist of files you want to deploy (and obviously exclude `.next` or your custom dist folder).
## Static HTML export