Fixed baseURL
This commit is contained in:
parent
e9e5591fee
commit
4ab086933e
2 changed files with 10 additions and 2 deletions
|
@ -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`}
|
||||
|
|
|
@ -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`}
|
||||
|
|
Loading…
Add table
Reference in a new issue