We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Oct 1, 2021 10:46 AM
Hello all,
I´m not able to get theprocess.env.APIKEY on serverless functions locally.
I´ve added the APIKEY through hs secrets add command:
After running the local server secrets env are all set:
Anyone also having this issue?
Thanks,
Solved! Go to Solution.
Oct 4, 2021 11:34 AM
I´m not having issues with this anymore.
I´m wondering If It was just a problem on my end.
I´ve updated @hubspot/cli from 3.0.8 to 3.0.9. and It started working again.
Thanks,
Jul 28, 2022 11:28 AM
For others, be sure to CAPITALIZE your environment variable names and you can also find the secret in the context parameter of exports.main, if process.env is not working for you.
Oct 4, 2021 11:43 AM
lol 😂 Never watched It. That was funny.
Thanks for sharing!
Oct 4, 2021 11:34 AM
I´m not having issues with this anymore.
I´m wondering If It was just a problem on my end.
I´ve updated @hubspot/cli from 3.0.8 to 3.0.9. and It started working again.
Thanks,
Jul 28, 2022 11:28 AM
For others, be sure to CAPITALIZE your environment variable names and you can also find the secret in the context parameter of exports.main, if process.env is not working for you.
Oct 4, 2021 11:39 AM
@RobertMarinho ever watch the IT crowd? 🤣
Oct 4, 2021 10:43 AM
Are you still having issues with this?