How do you insert environment variables in a .json config?
I think we need some more context here… The value of the env var or the name of it to be resolved later?One of the main things about using env vars is that they are not stored on disk.
For development I wanted to put it in a
I just don't want to store it in the .json file
Hey Max! What are you looking to put into an env file? There's some information on using env vars here , but I could possibly give you more specific advice if I knew more about the use case!
I don't want the tokens in a public repo
You'll have to use one of the methods described here if you're trying to obscure your tokens.
How do I do this with the .json config? Is there something I can do to add environment variables to a config?
Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.