Is the `NODE_ENV` environment variable set by defa...
# help
l
Is the
NODE_ENV
environment variable set by default? The value is always undefined for us, even when including it in the stack environments
t
I don't think we set this
I believe we set an
IS_LOCAL
value to detect if it's running in sst start
l
Got it, thanks for the info. I think it’d be useful to have this implemented since it’s a node.js standard
We can work around just fine for now, but not sure if there’d be any unexpected errors from it down the road
t
what do you expect to be in there?
the stage?
l
yeah the stage would be ideal
and their standard is
production
for the prod stage
t
since the stage can be set to anything we don't know which stage is production (and people may even have multiple prod stages)
so I think passing through the stage as is in NODE_ENV makes sense
l
ok that sounds good!