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:
parent
02bcfb21c8
commit
08965008c6
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
require('now-env')
|
require('now-env')
|
||||||
|
}
|
||||||
|
|
||||||
console.log({
|
console.log({
|
||||||
SECRET: process.env.SECRET,
|
SECRET: process.env.SECRET,
|
||||||
|
|
Loading…
Reference in a new issue