Skip to content

Commit

Permalink
remove NEXT_PUBLIC in varenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon-azerty committed Apr 12, 2024
1 parent 51f8201 commit 8db148e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RECAPTCHA_API_KEY=""
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=""
NEXT_PUBLIC_EMAILJS_API_KEY=""
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=""
NEXT_PUBLIC_EMAILJS_SERVICE_ID=""
RECAPTCHA_SITE_KEY=""
EMAILJS_API_KEY=""
EMAILJS_TEMPLATE_ID=""
EMAILJS_SERVICE_ID=""
LOCAL=true
3 changes: 1 addition & 2 deletions src/app/GoogleCaptchaWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export default function GoogleCaptchaWrapper({
}: {
children: React.ReactNode
}) {
const recaptchaKey: string | undefined =
process?.env?.NEXT_PUBLIC_RECAPTCHA_SITE_KEY
const recaptchaKey: string | undefined = process?.env?.RECAPTCHA_SITE_KEY
return (
<GoogleReCaptchaProvider reCaptchaKey={recaptchaKey ?? 'NOT DEFINED'}>
{children}
Expand Down
6 changes: 3 additions & 3 deletions src/components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export default function Contact() {
}
emailjs
.send(
process.env.NEXT_PUBLIC_EMAILJS_SERVICE_ID!,
process.env.NEXT_PUBLIC_EMAILJS_TEMPLATE_ID!,
process.env.EMAILJS_SERVICE_ID!,
process.env.EMAILJS_TEMPLATE_ID!,
params,
{
publicKey: process.env.NEXT_PUBLIC_EMAILJS_API_KEY!,
publicKey: process.env.EMAILJS_API_KEY!,
},
)
.then(
Expand Down

0 comments on commit 8db148e

Please sign in to comment.