diff --git a/src/shapes/VideoChatShapeUtil.tsx b/src/shapes/VideoChatShapeUtil.tsx index c726779..e6159c0 100644 --- a/src/shapes/VideoChatShapeUtil.tsx +++ b/src/shapes/VideoChatShapeUtil.tsx @@ -37,6 +37,7 @@ export class VideoChatShape extends BaseBoxShapeUtil { try { const apiKey = import.meta.env["VITE_DAILY_API_KEY"] + console.log("API Key available:", !!apiKey) if (!apiKey) throw new Error("Daily API key is missing") const response = await fetch("https://api.daily.co/v1/rooms", { @@ -54,8 +55,8 @@ export class VideoChatShape extends BaseBoxShapeUtil { }), }) - console.log("Response status:", response.status) - console.log("Response data:", await response.clone().json()) + //console.log("Response status:", response.status) + //console.log("Response data:", await response.clone().json()) if (!response.ok) throw new Error(`Failed to create room (${response.status})`) @@ -65,8 +66,8 @@ export class VideoChatShape extends BaseBoxShapeUtil { if (!url) throw new Error("Room URL is missing") - console.log("Room created successfully:", url) - console.log("Updating shape with new URL") + // console.log("Room created successfully:", url) + // console.log("Updating shape with new URL") await this.editor.updateShape({ id: shape.id, @@ -77,9 +78,9 @@ export class VideoChatShape extends BaseBoxShapeUtil { }, }) - console.log("Shape updated:", this.editor.getShape(shape.id)) + //console.log("Shape updated:", this.editor.getShape(shape.id)) } catch (error) { - console.error("Error in ensureRoomExists:", error) + //console.error("Error in ensureRoomExists:", error) throw error } }