Skip to content

Scheduling infrastructure for absolutely everyone.

added publicRuntimeConfig in nextjs config for upgrade URL (#651)

Syed Ali Shahbaz0d60052c883c
diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx
index cda10d72566..44cc4018fb9 100644
--- a/pages/event-types/index.tsx
+++ b/pages/event-types/index.tsx
@@ -281,8 +281,8 @@ const EventTypesPage = (props: PageProps) => {
message={
<>
To upgrade go to{" "}
- <a href={`${window.location.origin}/upgrade`} className="underline">
- {`${window.location.origin}/upgrade`}
+ <a href={process.env.UPGRADE_URL || "https://cal.com/upgrade"} className="underline">
+ {process.env.UPGRADE_URL || "https://cal.com/upgrade"}
</a>
</>
}