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>
This commit is contained in:
Hariom Balhara
2025-10-18 15:39:32 -03:00
committed by GitHub
co-authored by Devin AI
parent ec03ab632e
commit 624d6d7001
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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";
+1
View File
@@ -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";