From 5858775483ed6e01695279004666330aab07f07f Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:55:09 -0500 Subject: [PATCH] logging bugs --- src/shapes/VideoChatShapeUtil.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shapes/VideoChatShapeUtil.tsx b/src/shapes/VideoChatShapeUtil.tsx index 4190ed2..e278794 100644 --- a/src/shapes/VideoChatShapeUtil.tsx +++ b/src/shapes/VideoChatShapeUtil.tsx @@ -96,6 +96,12 @@ export class VideoChatShape extends BaseBoxShapeUtil { try { // Ensure API key exists and is properly formatted const apiKey = import.meta.env.VITE_DAILY_API_KEY?.trim() + console.log("API Key exists:", !!apiKey) + console.log( + "API Key format:", + apiKey?.substring(0, 4) === "key_" ? "correct" : "incorrect", + ) + if (!apiKey) { throw new Error("Daily API key is missing") }