Fixed baseURL

This commit is contained in:
Atridad Lahiji 2023-06-25 17:04:33 -06:00
parent 0a470a401d
commit 07a5576982
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View file

@ -18,6 +18,10 @@ interface GoodbyeTemplateProps {
name: string;
}
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
export const Goodbye: React.FC<Readonly<GoodbyeTemplateProps>> = ({ name }) => (
<Html>
<Head />
@ -27,7 +31,7 @@ export const Goodbye: React.FC<Readonly<GoodbyeTemplateProps>> = ({ name }) => (
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Section className="mt-[32px]">
<Img
src={`/logo.webp`}
src={`${baseUrl}/logo.webp`}
width="40"
height="37"
alt={`Sprint Padawan Logo`}

View file

@ -17,6 +17,10 @@ interface WelcomeTemplateProps {
name: string;
}
const baseUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
export const Welcome: React.FC<Readonly<WelcomeTemplateProps>> = ({ name }) => (
<Html>
<Head />
@ -26,7 +30,7 @@ export const Welcome: React.FC<Readonly<WelcomeTemplateProps>> = ({ name }) => (
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Section className="mt-[32px]">
<Img
src={`/logo.webp`}
src={`${baseUrl}/logo.webp`}
width="40"
height="37"
alt={`Sprint Padawan Logo`}