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

Prevent now-env from running in production (#4259)

This commit is contained in:
Tim Phillips 2018-05-04 22:14:59 -07:00 committed by Tim Neutkens
parent 02bcfb21c8
commit 08965008c6

View file

@ -2,7 +2,9 @@ const webpack = require('webpack')
/** /**
* After the next require you can use process.env to get your secrets * After the next require you can use process.env to get your secrets
*/ */
require('now-env') if (process.env.NODE_ENV !== 'production') {
require('now-env')
}
console.log({ console.log({
SECRET: process.env.SECRET, SECRET: process.env.SECRET,