From dc3850ac4d060fbe2a139e2fcbbd913dae0e8a48 Mon Sep 17 00:00:00 2001 From: Riccardo Senica Date: Thu, 29 Jan 2026 18:19:00 +0100 Subject: [PATCH] fix: rename env var --- app/confirmation/page.tsx | 2 +- app/page.tsx | 2 +- app/robots.ts | 2 +- app/sitemap.ts | 6 +++--- app/unsubscribe/page.tsx | 2 +- components/email/Confirmation.tsx | 2 +- components/email/Unsubscribe.tsx | 2 +- components/email/components/Footer.tsx | 8 ++++---- utils/resendClient.ts | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/confirmation/page.tsx b/app/confirmation/page.tsx index 955db10..a338ba8 100644 --- a/app/confirmation/page.tsx +++ b/app/confirmation/page.tsx @@ -86,7 +86,7 @@ const Confirmation = () => { '@type': 'WebSite', name: 'Hackernews Newsletter', title: 'Subscription Confirmation', - url: `${process.env.HOME_URL}/confirmation` + url: `${process.env.NEXT_PUBLIC_HOME_URL}/confirmation` }; return ( diff --git a/app/page.tsx b/app/page.tsx index 58723a1..a98d00b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -31,7 +31,7 @@ export const Home = () => { '@type': 'WebSite', name: 'Hackernews Newsletter', title: 'Home', - url: process.env.HOME_URL + url: process.env.NEXT_PUBLIC_HOME_URL }; const form = useForm({ diff --git a/app/robots.ts b/app/robots.ts index adc7caf..e6393bc 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -6,6 +6,6 @@ export default function robots(): MetadataRoute.Robots { userAgent: '*', disallow: '' }, - sitemap: `${process.env.HOME_URL!}/sitemap.xml` + sitemap: `${process.env.NEXT_PUBLIC_HOME_URL!}/sitemap.xml` }; } diff --git a/app/sitemap.ts b/app/sitemap.ts index 017c8bf..a93f703 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -3,19 +3,19 @@ import { MetadataRoute } from 'next'; export default function sitemap(): MetadataRoute.Sitemap { return [ { - url: process.env.HOME_URL!, + url: process.env.NEXT_PUBLIC_HOME_URL!, lastModified: new Date(), changeFrequency: 'yearly', priority: 1 }, { - url: `${process.env.HOME_URL!}/privacy`, + url: `${process.env.NEXT_PUBLIC_HOME_URL!}/privacy`, lastModified: new Date(), changeFrequency: 'yearly', priority: 0.5 }, { - url: `${process.env.HOME_URL!}/unsubscribe`, + url: `${process.env.NEXT_PUBLIC_HOME_URL!}/unsubscribe`, lastModified: new Date(), changeFrequency: 'yearly', priority: 0.2 diff --git a/app/unsubscribe/page.tsx b/app/unsubscribe/page.tsx index be46feb..65bc2ce 100644 --- a/app/unsubscribe/page.tsx +++ b/app/unsubscribe/page.tsx @@ -33,7 +33,7 @@ const Unsubscribe = () => { '@type': 'WebSite', name: 'Hackernews Newsletter', title: 'Unsubscribe', - url: `${process.env.HOME_URL}/unsubscribe` + url: `${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe` }; const form = useForm({ diff --git a/components/email/Confirmation.tsx b/components/email/Confirmation.tsx index 9a37842..41d5e37 100644 --- a/components/email/Confirmation.tsx +++ b/components/email/Confirmation.tsx @@ -22,7 +22,7 @@ export const ConfirmationTemplate = (code: string) => { }} > { }} > ( { Click{' '} here @@ -144,7 +144,7 @@ export const Footer = () => { > Privacy Policy @@ -162,7 +162,7 @@ export const Footer = () => { > Visit Website diff --git a/utils/resendClient.ts b/utils/resendClient.ts index 252581e..c4b07a4 100644 --- a/utils/resendClient.ts +++ b/utils/resendClient.ts @@ -30,7 +30,7 @@ export async function sender( subject, react: template, headers: { - 'List-Unsubscribe': `<${process.env.HOME_URL}/unsubscribe>` + 'List-Unsubscribe': `<${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe>` } }); } else { @@ -42,7 +42,7 @@ export async function sender( subject, react: template, headers: { - 'List-Unsubscribe': `<${process.env.HOME_URL}/unsubscribe>` + 'List-Unsubscribe': `<${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe>` } }; })