Figuring out if netlify-function is in a main env or production deploy

See also this thread for some tips about how to determine build context from within a Netlify function: Netlify Functions and Env Variables from netlify.toml

1 Like