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
- Head to the Google Captcha console and create a new application.
- Copy the
Site key
andSecret key
from theKeys
section. - Store these keys for the next step.
Update .env
- Add the following to your
.env
file:
NEXT_PUBLIC_GOOGLE_CAPTCHA_SITE_KEY=""
GOOGLE_CAPTCHA_SECRET=""
- Enter the copied values from earlier in the corresponding name
- Run this command in the root of the CAD:
node scripts/copy-env.mjs --client --api
- Rebuild the client:
pnpm turbo run build --filter=@snailycad/client
- Restart the entire CAD.