You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
I am trying to use codesandbox environment variable secrets to hold an api key that I can then pull into my api.js file by calling it process.env.API_KEY but it keeps coming back as undefined. I followed the instructions and restarted multiple times but no luck. Tested process.env.NODE_ENV and get expected result so I know that's at least working but I can't seem to access the variable I set up in the modal. Am I missing something here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,


I am trying to use codesandbox environment variable secrets to hold an api key that I can then pull into my api.js file by calling it
process.env.API_KEY
but it keeps coming back as undefined. I followed the instructions and restarted multiple times but no luck. Testedprocess.env.NODE_ENV
and get expected result so I know that's at least working but I can't seem to access the variable I set up in the modal. Am I missing something here?Beta Was this translation helpful? Give feedback.
All reactions