/
@@ -191,7 +191,7 @@ const VisualBlur = ({ visualSlug }: { visualSlug: string }) => {
style={{
filter: "blur(98px)",
backgroundColor: "rgba(255, 255, 255, 0.7)",
- backgroundImage: `url(${CAL_URL}${visualSlug})`,
+ backgroundImage: `url(${WEBAPP_URL}${visualSlug})`,
backgroundSize: "400px 400px",
}}
/>
@@ -202,7 +202,7 @@ const VisualBlur = ({ visualSlug }: { visualSlug: string }) => {
style={{
filter: "blur(150px)",
backgroundColor: "rgba(255, 255, 255, 0.7)",
- backgroundImage: `url(${CAL_URL}${visualSlug})`,
+ backgroundImage: `url(${WEBAPP_URL}${visualSlug})`,
backgroundSize: "630px 630px",
}}
/>
@@ -212,13 +212,13 @@ const VisualBlur = ({ visualSlug }: { visualSlug: string }) => {
export const App = ({ name, description, slug }: AppImageProps) => (
-
+
-

+
@@ -236,7 +236,7 @@ export const Generic = ({ title, description }: GenericImageProps) => (
-

+
diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts
index cc25a5b303..59960c41ee 100644
--- a/packages/lib/constants.ts
+++ b/packages/lib/constants.ts
@@ -78,7 +78,7 @@ export const SEO_IMG_DEFAULT = `${WEBSITE_URL}/og-image.png`;
// This results in a 80% smaller image 🤯. It is however important that for the query
// parameters you pass to the /api/social/og/image endpoint, you wrap them in encodeURIComponent
// as well, otherwise the URL won't be valid.
-export const SEO_IMG_OGIMG = `${CAL_URL}/_next/image?w=1200&q=100&url=${encodeURIComponent(
+export const SEO_IMG_OGIMG = `${WEBAPP_URL}/_next/image?w=1200&q=100&url=${encodeURIComponent(
"/api/social/og/image"
)}`;
export const SEO_IMG_OGIMG_VIDEO = `${WEBSITE_URL}/video-og-image.png`;
diff --git a/packages/lib/getBookerUrl/server.ts b/packages/lib/getBookerUrl/server.ts
index 551bff6540..a5c27bc4ec 100644
--- a/packages/lib/getBookerUrl/server.ts
+++ b/packages/lib/getBookerUrl/server.ts
@@ -1,12 +1,12 @@
-import { CAL_URL } from "../constants";
+import { WEBSITE_URL } from "../constants";
import { getBrand } from "../server/getBrand";
export const getBookerBaseUrl = async (organizationId: number | null) => {
const orgBrand = await getBrand(organizationId);
- return orgBrand?.fullDomain ?? CAL_URL;
+ return orgBrand?.fullDomain ?? WEBSITE_URL;
};
export const getTeamBookerUrl = async (team: { organizationId: number | null }) => {
const orgBrand = await getBrand(team.organizationId);
- return orgBrand?.fullDomain ?? CAL_URL;
+ return orgBrand?.fullDomain ?? WEBSITE_URL;
};
diff --git a/packages/lib/getEventTypeById.ts b/packages/lib/getEventTypeById.ts
index 9a9b21c3ba..09979adf3e 100644
--- a/packages/lib/getEventTypeById.ts
+++ b/packages/lib/getEventTypeById.ts
@@ -14,7 +14,7 @@ import { customInputSchema, EventTypeMetaDataSchema } from "@calcom/prisma/zod-u
import { TRPCError } from "@trpc/server";
-import { CAL_URL } from "./constants";
+import { WEBSITE_URL } from "./constants";
import { getBookerBaseUrl } from "./getBookerUrl/server";
interface getEventTypeByIdProps {
@@ -304,7 +304,7 @@ export default async function getEventTypeById({
? await getBookerBaseUrl(restEventType.team.parentId)
: restEventType.owner
? await getBookerBaseUrl(currentOrganizationId)
- : CAL_URL,
+ : WEBSITE_URL,
children: childrenWithUserProfile.flatMap((ch) =>
ch.owner !== null
? {
diff --git a/packages/lib/hooks/useBookerUrl.ts b/packages/lib/hooks/useBookerUrl.ts
index 090826d482..329afc73f4 100644
--- a/packages/lib/hooks/useBookerUrl.ts
+++ b/packages/lib/hooks/useBookerUrl.ts
@@ -1,7 +1,7 @@
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
-import { CAL_URL, WEBAPP_URL } from "@calcom/lib/constants";
+import { WEBAPP_URL, WEBSITE_URL } from "@calcom/lib/constants";
export const useBookerUrl = () => {
const orgBranding = useOrgBranding();
- return orgBranding?.fullDomain ?? CAL_URL ?? WEBAPP_URL;
+ return orgBranding?.fullDomain ?? WEBSITE_URL ?? WEBAPP_URL;
};
diff --git a/packages/ui/components/apps/AppCard.tsx b/packages/ui/components/apps/AppCard.tsx
index 411d7071d3..1f1f4586a6 100644
--- a/packages/ui/components/apps/AppCard.tsx
+++ b/packages/ui/components/apps/AppCard.tsx
@@ -8,7 +8,7 @@ import { doesAppSupportTeamInstall } from "@calcom/app-store/utils";
import { Spinner } from "@calcom/features/calendars/weeklyview/components/spinner/Spinner";
import type { UserAdminTeams } from "@calcom/features/ee/teams/lib/getUserAdminTeams";
import classNames from "@calcom/lib/classNames";
-import { CAL_URL } from "@calcom/lib/constants";
+import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { AppFrontendPayload as App } from "@calcom/types/App";
import type { CredentialFrontendPayload as Credential } from "@calcom/types/Credential";
@@ -276,7 +276,7 @@ const InstallAppButtonChild = ({
StartIcon={(props) => (