diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index c328afb..439bf1f 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -3,6 +3,10 @@ import ContactComponent from "./ContactComponent"; export default async function ContactPage() { - const recaptchaSiteKey = process.env["RECAPTCHA_SITE_KEY"]; + const recaptchaSiteKey = await getSiteKey(); return ; } + +async function getSiteKey() { + return process.env.RECAPTCHA_SITE_KEY; +}