diff --git a/config.ts b/config.ts index 55f79f3d18..c74dd432c7 100644 --- a/config.ts +++ b/config.ts @@ -274,7 +274,7 @@ const siteConfig = { footer: { newsletter: { text: 'Stay up to date with the latest features and changes to Prisma', - BREVO_API_KEY: process.env.BREVO_API_KEY || '', + GATSBY_BREVO_API_KEY: process.env.GATSBY_BREVO_API_KEY || '', }, }, } diff --git a/src/components/newsletter/FooterNewsletterForm.tsx b/src/components/newsletter/FooterNewsletterForm.tsx index b1f941ea6f..e22560c92b 100644 --- a/src/components/newsletter/FooterNewsletterForm.tsx +++ b/src/components/newsletter/FooterNewsletterForm.tsx @@ -120,7 +120,7 @@ export const FooterNewsletterForm = ({ theme, color = 'indigo' }: FooterNewslett headers: { accept: 'application/json', 'content-type': 'application/json', - 'api-key': config.footer.newsletter.BREVO_API_KEY, + 'api-key': config.footer.newsletter.GATSBY_BREVO_API_KEY, }, body: JSON.stringify({ email: email,