-
For Gatsby build time environment variables, all are fine. But I would need to have "client-side" for like reCAPTCHA site key. For my local development environment, I have Same goes for actual building and I have proper secrets set. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Vercel doesn't know the concept of "client-side" because this is determined by your Static Site Generator, in this case Gatsby. If you need environment variables on the client side, the you'll have to read from the build env vars and probably write a file to the build output, perhaps |
Beta Was this translation helpful? Give feedback.
Vercel doesn't know the concept of "client-side" because this is determined by your Static Site Generator, in this case Gatsby.
If you need environment variables on the client side, the you'll have to read from the build env vars and probably write a file to the build output, perhaps
data.json
, or something like that which you can then read from the client side.https://vercel.com/docs/environment-variables