environmental variables issue -- 2

Job ID: 39257997

Budget: €8 – €30 EUR

in the implementation of cloud functions I want to hide an API key I use the environment variables but it is not recommended in production (but it works) I want to replace them with defineSecret and it does not work in my use it tells me defineSecret is not a function that can get me out of this bad situation?

I want a version compatible with production, my environment seems up to date but I remain stuck on a "defineSecret" is not a function
Related categories: JavaScript Google APIs