How to Insert Environment Variables in a JSON Config
One of the main things about using env vars is that they are not stored on disk.
.envfile
config/@sanity/google-maps-input.jsonhas a key
apiKeywhich I want it to be a environment variable.
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.