A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth replying to this from @philhawksworth
@irreverentmike @Netlify Try setting a different NODE_ENV value for different deploy contexts (stage | prod etc) and then programmatically accessing different env vars as a result.

if (process.env.NODE_ENV=="production") {
const secretThing = process.env.myProdSecret;
}

My tweets and posts live here on my own domain these days.
You can explore them here and follow me on Mastodon instead of Twitter where I'm not currently active.