From d0f063ed22d75db398194ba9906f3f874487f690 Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Fri, 24 Jan 2025 11:33:34 +0200 Subject: [PATCH] Move NextAuth secret for production into another file --- .env.production | 1 - src/components/forms/reusable/ReCAPTCHAForm.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 3be558a..2faf997 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,6 @@ NEXT_PUBLIC_BASE_URL=https://ponou.unibuc.ro/ # NextAuth configuration NEXTAUTH_URL=https://ponou.unibuc.ro/ -NEXTAUTH_SECRET=dev # EuPlatesc credentials EUPLATESC_MERCHANT_ID=44841002813 diff --git a/src/components/forms/reusable/ReCAPTCHAForm.tsx b/src/components/forms/reusable/ReCAPTCHAForm.tsx index 61a625a..295d1f2 100644 --- a/src/components/forms/reusable/ReCAPTCHAForm.tsx +++ b/src/components/forms/reusable/ReCAPTCHAForm.tsx @@ -58,7 +58,7 @@ export default function ReCAPTCHAForm({ size="normal" sitekey={process.env.NEXT_PUBLIC_RECAPTCHA!} onChange={field.onChange} - hl={locale} + hl={typeof locale === "string" ? locale : "ro"} /> {disabled && (