Skip to main content
Best answer

CLI environment variables in local testing

  • May 11, 2024
  • 1 reply
  • 110 views

Variables set in .env are not showing up in local testing. I wanted to test locally with a flag process.env.PRODUCTION === false and then set my API key, otherwise have the bundle api key being pulled.

Thanks for any help!

Best answer by rupertxyzBest answer by rupertxyz

Nevermind, just found this in the CLI Docs:
 

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

  • Author
  • Beginner
  • 1 reply
  • Answer
  • May 11, 2024

Nevermind, just found this in the CLI Docs: