fix: rename env var
Some checks failed
Deploy / lint-build-deploy (push) Failing after 1m23s

This commit is contained in:
2026-01-29 18:19:00 +01:00
parent e73262b3b3
commit dc3850ac4d
9 changed files with 15 additions and 15 deletions

View File

@@ -86,7 +86,7 @@ const Confirmation = () => {
'@type': 'WebSite', '@type': 'WebSite',
name: 'Hackernews Newsletter', name: 'Hackernews Newsletter',
title: 'Subscription Confirmation', title: 'Subscription Confirmation',
url: `${process.env.HOME_URL}/confirmation` url: `${process.env.NEXT_PUBLIC_HOME_URL}/confirmation`
}; };
return ( return (

View File

@@ -31,7 +31,7 @@ export const Home = () => {
'@type': 'WebSite', '@type': 'WebSite',
name: 'Hackernews Newsletter', name: 'Hackernews Newsletter',
title: 'Home', title: 'Home',
url: process.env.HOME_URL url: process.env.NEXT_PUBLIC_HOME_URL
}; };
const form = useForm<SubscribeFormType>({ const form = useForm<SubscribeFormType>({

View File

@@ -6,6 +6,6 @@ export default function robots(): MetadataRoute.Robots {
userAgent: '*', userAgent: '*',
disallow: '' disallow: ''
}, },
sitemap: `${process.env.HOME_URL!}/sitemap.xml` sitemap: `${process.env.NEXT_PUBLIC_HOME_URL!}/sitemap.xml`
}; };
} }

View File

@@ -3,19 +3,19 @@ import { MetadataRoute } from 'next';
export default function sitemap(): MetadataRoute.Sitemap { export default function sitemap(): MetadataRoute.Sitemap {
return [ return [
{ {
url: process.env.HOME_URL!, url: process.env.NEXT_PUBLIC_HOME_URL!,
lastModified: new Date(), lastModified: new Date(),
changeFrequency: 'yearly', changeFrequency: 'yearly',
priority: 1 priority: 1
}, },
{ {
url: `${process.env.HOME_URL!}/privacy`, url: `${process.env.NEXT_PUBLIC_HOME_URL!}/privacy`,
lastModified: new Date(), lastModified: new Date(),
changeFrequency: 'yearly', changeFrequency: 'yearly',
priority: 0.5 priority: 0.5
}, },
{ {
url: `${process.env.HOME_URL!}/unsubscribe`, url: `${process.env.NEXT_PUBLIC_HOME_URL!}/unsubscribe`,
lastModified: new Date(), lastModified: new Date(),
changeFrequency: 'yearly', changeFrequency: 'yearly',
priority: 0.2 priority: 0.2

View File

@@ -33,7 +33,7 @@ const Unsubscribe = () => {
'@type': 'WebSite', '@type': 'WebSite',
name: 'Hackernews Newsletter', name: 'Hackernews Newsletter',
title: 'Unsubscribe', title: 'Unsubscribe',
url: `${process.env.HOME_URL}/unsubscribe` url: `${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe`
}; };
const form = useForm<UnsubscribeFormType>({ const form = useForm<UnsubscribeFormType>({

View File

@@ -22,7 +22,7 @@ export const ConfirmationTemplate = (code: string) => {
}} }}
> >
<a <a
href={`${process.env.HOME_URL}/confirmation?code=${code}`} href={`${process.env.NEXT_PUBLIC_HOME_URL}/confirmation?code=${code}`}
style={{ style={{
display: 'inline-block', display: 'inline-block',
padding: '12px 24px', padding: '12px 24px',

View File

@@ -22,7 +22,7 @@ export const UnsubscribeTemplate = () => {
}} }}
> >
<a <a
href={`${process.env.HOME_URL}/`} href={`${process.env.NEXT_PUBLIC_HOME_URL}/`}
style={{ style={{
display: 'inline-block', display: 'inline-block',
padding: '12px 24px', padding: '12px 24px',

View File

@@ -5,7 +5,7 @@ const iconStyle = {
const Icon = ({ name, size = 16 }: { name: string; size?: number }) => ( const Icon = ({ name, size = 16 }: { name: string; size?: number }) => (
<img <img
src={`${process.env.HOME_URL}/email-icons/${name}.png`} src={`${process.env.NEXT_PUBLIC_HOME_URL}/email-icons/${name}.png`}
width={size} width={size}
height={size} height={size}
alt="" alt=""
@@ -97,7 +97,7 @@ export const Footer = () => {
<span> <span>
Click{' '} Click{' '}
<a <a
href={`${process.env.HOME_URL}/unsubscribe`} href={`${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe`}
style={{ color: '#386FA4', textDecoration: 'none' }} style={{ color: '#386FA4', textDecoration: 'none' }}
> >
here here
@@ -144,7 +144,7 @@ export const Footer = () => {
> >
<Icon name="shield" size={14} /> <Icon name="shield" size={14} />
<a <a
href={`${process.env.HOME_URL}/privacy`} href={`${process.env.NEXT_PUBLIC_HOME_URL}/privacy`}
style={{ color: '#386FA4', textDecoration: 'none' }} style={{ color: '#386FA4', textDecoration: 'none' }}
> >
Privacy Policy Privacy Policy
@@ -162,7 +162,7 @@ export const Footer = () => {
> >
<Icon name="house" size={14} /> <Icon name="house" size={14} />
<a <a
href={process.env.HOME_URL} href={process.env.NEXT_PUBLIC_HOME_URL}
style={{ color: '#386FA4', textDecoration: 'none' }} style={{ color: '#386FA4', textDecoration: 'none' }}
> >
Visit Website Visit Website

View File

@@ -30,7 +30,7 @@ export async function sender(
subject, subject,
react: template, react: template,
headers: { headers: {
'List-Unsubscribe': `<${process.env.HOME_URL}/unsubscribe>` 'List-Unsubscribe': `<${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe>`
} }
}); });
} else { } else {
@@ -42,7 +42,7 @@ export async function sender(
subject, subject,
react: template, react: template,
headers: { headers: {
'List-Unsubscribe': `<${process.env.HOME_URL}/unsubscribe>` 'List-Unsubscribe': `<${process.env.NEXT_PUBLIC_HOME_URL}/unsubscribe>`
} }
}; };
}) })