From 624d6d70016fe51a3d4acd0b3548306a5837f15d Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Sun, 19 Oct 2025 00:09:32 +0530 Subject: [PATCH] Add embed-iframe import to error pages (#24475) Import @calcom/embed-core/src/embed-iframe in both the error page component and _error.tsx to ensure embed functionality is initialized when users encounter 500 errors. This allows proper communication with parent frames when the error page is displayed in an embedded context. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- apps/web/components/error/error-page.tsx | 1 + apps/web/pages/_error.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/web/components/error/error-page.tsx b/apps/web/components/error/error-page.tsx index 1ed087665d..e6773da325 100644 --- a/apps/web/components/error/error-page.tsx +++ b/apps/web/components/error/error-page.tsx @@ -2,6 +2,7 @@ import React from "react"; +import "@calcom/embed-core/src/embed-iframe"; import { HttpError } from "@calcom/lib/http-error"; import { Button } from "@calcom/ui/components/button"; diff --git a/apps/web/pages/_error.tsx b/apps/web/pages/_error.tsx index 50dce26a41..b20f35a256 100644 --- a/apps/web/pages/_error.tsx +++ b/apps/web/pages/_error.tsx @@ -7,6 +7,7 @@ import type { ErrorProps } from "next/error"; import NextError from "next/error"; import React from "react"; +import "@calcom/embed-core/src/embed-iframe"; import { getErrorFromUnknown } from "@calcom/lib/errors"; import { HttpError } from "@calcom/lib/http-error"; import logger from "@calcom/lib/logger";