Skip to content

Commit 624d6d7

Browse files
Add embed-iframe import to error pages (calcom#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>
1 parent ec03ab6 commit 624d6d7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/components/error/error-page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import React from "react";
44

5+
import "@calcom/embed-core/src/embed-iframe";
56
import { HttpError } from "@calcom/lib/http-error";
67
import { Button } from "@calcom/ui/components/button";
78

apps/web/pages/_error.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { ErrorProps } from "next/error";
77
import NextError from "next/error";
88
import React from "react";
99

10+
import "@calcom/embed-core/src/embed-iframe";
1011
import { getErrorFromUnknown } from "@calcom/lib/errors";
1112
import { HttpError } from "@calcom/lib/http-error";
1213
import logger from "@calcom/lib/logger";

0 commit comments

Comments
 (0)