How to set NODE_ENV (other env vars?)

225 views
Skip to first unread message

Richard Campbell

unread,
Dec 21, 2016, 2:09:11 PM12/21/16
to gce-discussion
How do you set NODE_ENV, or other environment variables, for functions?

I see that NODE_ENV is set to "production" right now.....

Richard

Nicholas (Google Cloud Support)

unread,
Dec 21, 2016, 4:42:40 PM12/21/16
to gce-discussion
Hey Richard,

Traditionally, a way to set environment variables is to modify them using the script.start property.  At the moment however, there is no way to modify those properties in production as they are set by the Cloud Functions infrastructure.

Given that this product is still in an Alpha phase, this sounds like an excellent feature request.  I strongly encourage you file a new feature request on the Cloud SDK public issue tracker.  If/when doing so, please include a link to it here so others can follow through and star the request for support.

Richard Campbell

unread,
Dec 21, 2016, 7:39:52 PM12/21/16
to gce-discussion
Done. Thanks.

.ric


Reply all
Reply to author
Forward
0 new messages