Skip to content

Commit

Permalink
chore: read RAZZLE_RECAPTCHA_KEY from window if is not in process
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Sep 30, 2021
1 parent fa1f345 commit a20de8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/widgets/GoogleReCaptchaWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const GoogleReCaptchaWidget = ({ onVerify, GoogleReCaptcha, action }) => {

return (
<GoogleReCaptchaProvider
reCaptchaKey={process.env.RAZZLE_RECAPTCHA_KEY}
reCaptchaKey={
process.env.RAZZLE_RECAPTCHA_KEY ?? window.env.RAZZLE_RECAPTCHA_KEY
}
language={intl.locale ?? 'en'}
>
<Grid.Row centered className="row-padded-top">
Expand Down

0 comments on commit a20de8f

Please sign in to comment.