From 4ab086933ef235c87fd268e8992d8b783b6b96b4 Mon Sep 17 00:00:00 2001
From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com>
Date: Sun, 25 Jun 2023 17:04:33 -0600
Subject: [PATCH] Fixed baseURL
---
src/components/templates/Goodbye.tsx | 6 +++++-
src/components/templates/Welcome.tsx | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/components/templates/Goodbye.tsx b/src/components/templates/Goodbye.tsx
index 778939d..099db4e 100644
--- a/src/components/templates/Goodbye.tsx
+++ b/src/components/templates/Goodbye.tsx
@@ -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> = ({ name }) => (
@@ -27,7 +31,7 @@ export const Goodbye: React.FC> = ({ name }) => (
> = ({ name }) => (
@@ -26,7 +30,7 @@ export const Welcome: React.FC> = ({ name }) => (