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:
@@ -11,6 +11,7 @@ build_frontend:
|
|||||||
- |
|
- |
|
||||||
cd frontend
|
cd frontend
|
||||||
echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY" > .env
|
echo "NEXT_PUBLIC_HCAPTCHA_SITE_KEY=$HCAPTCHA_SITE_KEY" > .env
|
||||||
|
echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY" > .env
|
||||||
npm install
|
npm install
|
||||||
npx next build
|
npx next build
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ const ContactFormSection = () => {
|
|||||||
>
|
>
|
||||||
<ReCAPTCHA
|
<ReCAPTCHA
|
||||||
sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY!}
|
sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY!}
|
||||||
onChange={(token) => setCaptchaToken(token || '')}
|
onChange={(token) => setCaptchaToken(token ?? '')}
|
||||||
/>
|
/>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user