i need to check if the branch is staging or production in a lambda function, how should it be done ?
Hi @abhidj0090,
You could use process.env.CONTEXT and that would give you if it’s production or branch-deploy or any context that you set in netlify.toml.
I am not getting that context value in env how to set it in the toml file ?
will have a look many thanks 
worked like a charm, I spent the better part a day trying to get this
thanks @hrishikesh