Hi I’m reasonably new to netlify and have never used the environment variables before but I’m having a tough time getting my head around how to use them.
I have a gatsby site I’m working on and have set up a environment variable in the UI but I’m unsure how I access it? I have tried just console.log(process.env) to see what comes back but it’s an empty object. I know I’m missing something which may be obvious but I’m just a hobby developer so not sure.
Additionally how do I access environment variables in netlify dev?
Thanks in advance