Merge branch 'fix-captcha' into 'dev'

Fix reCaptcha

See merge request rheinsw/rheinsw-mono-repo!10
This commit was merged in pull request #10.
This commit is contained in:
2025-06-29 00:58:25 +00:00
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ build_frontend:
- |
cd frontend
echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY" > .env
echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY" > .env
npm install
npx next build
artifacts:

View File

@@ -183,7 +183,7 @@ const ContactFormSection = () => {
>
<ReCAPTCHA
sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY!}
onChange={(token) => setCaptchaToken(token || '')}
onChange={(token) => setCaptchaToken(token ?? '')}
/>
</motion.div>