Hugo/Netlify config for google recaptcha keys

Hi,

I know, this it not a hugo related question, but I do not where to ask. Where should I put the google recaptcha keys in. I guess, in the netlify.toml file. And how it must look like? I know, that I have two keys. One public and one secret.

SITE_RECAPTCHA_KEY

SITE_RECAPTCHA_SECRET

But where and how to insert them I do not know.

Here is a link from netlify:

https://docs.netlify.com/manage/forms/spam-filters/#custom-recaptcha-2

Thanks :slight_smile:

Edit: I use recaptcha v2 box

You can either set them in netlify.toml (in your project folder) or in the Netlify console. Assuming these are somehow secret, I would recommend you do the latter. For that, go to Project configuration > Environment variables.