Skip to main content

Google Captcha Integration

You can use Google Captcha to protect the registration form from spam bots.

How to enable Google Captcha

Create the Google Captcha application

  1. Head to the Google Captcha console and create a new application.
  2. Copy the Site key and Secret key from the Keys section.
  3. Store these keys for the next step.

Update .env

  1. Add the following to your .env file:
NEXT_PUBLIC_GOOGLE_CAPTCHA_SITE_KEY=""
GOOGLE_CAPTCHA_SECRET=""
  1. Enter the copied values from earlier in the corresponding name
  2. Run this command in the root of the CAD: node scripts/copy-env.mjs --client --api
  3. Rebuild the client: pnpm turbo run build --filter=@snailycad/client
  4. Restart the entire CAD.

Was this page helpful?