Merge pull request #3762 from omnivore-app/fix/web-captcha-var-naming
Fix naming of recaptcha environment variable
This commit is contained in:
@ -180,7 +180,7 @@ export function EmailSignup(): JSX.Element {
|
||||
|
||||
<SignUpForm />
|
||||
|
||||
{process.env.NEXT_PUBLIC_RECAPTCHA_CHALLENGE_SECRET_KEY && (
|
||||
{process.env.NEXT_PUBLIC_RECAPTCHA_CHALLENGE_SITE_KEY && (
|
||||
<>
|
||||
<Recaptcha
|
||||
setRecaptchaToken={(token) => {
|
||||
|
||||
@ -9,7 +9,7 @@ export default function EmailRegistrationPage(): JSX.Element {
|
||||
<GoogleReCaptchaProvider
|
||||
type="v2-checkbox"
|
||||
isEnterprise={true}
|
||||
siteKey={process.env.NEXT_PUBLIC_RECAPTCHA_CHALLENGE_SECRET_KEY ?? ''}
|
||||
siteKey={process.env.NEXT_PUBLIC_RECAPTCHA_CHALLENGE_SITE_KEY ?? ''}
|
||||
>
|
||||
<PageMetaData
|
||||
title="Sign up with Email - Omnivore"
|
||||
|
||||
12
yarn.lock
12
yarn.lock
@ -3023,6 +3023,18 @@
|
||||
dependencies:
|
||||
google-gax "^4.0.3"
|
||||
|
||||
"@google-recaptcha/core@*":
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@google-recaptcha/core/-/core-1.0.1.tgz#f49bb60d15d1e2e17445bb64aeb1ec36b108645f"
|
||||
integrity sha512-Sq6Tp26H4Eq39/LXOLDyQ1th7LRGjkV3o2PfPp6NNAPRd/SXQcU2cLpbBnjTGNxx/MBNRAHl4wX1k3NehNTDVQ==
|
||||
|
||||
"@google-recaptcha/react@^1.0.3":
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@google-recaptcha/react/-/react-1.0.3.tgz#85522e9c467448435c3645a54a510bf0d870dd04"
|
||||
integrity sha512-Sv9jmnvXHjR1nqddfIBQcg/W0xNeohmGopK09ToNjXBOPRhhYR/A266z2MMeQttgrplQonx/qpktqbnAqvJPQQ==
|
||||
dependencies:
|
||||
"@google-recaptcha/core" "*"
|
||||
|
||||
"@graphql-codegen/cli@^2.6.2":
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-2.6.2.tgz#a9aa4656141ee0998cae8c7ad7d0bf9ca8e0c9ae"
|
||||
|
||||
Reference in New Issue
Block a user