logging bugs

This commit is contained in:
Jeff Emmett 2024-12-08 20:55:09 -05:00
parent b74ae75fa8
commit 5858775483
1 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,12 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
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")
}