diff --git a/src/App.tsx b/src/App.tsx index 871dd98..beaea4f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -51,16 +51,18 @@ export default function InteractiveShapeExample() { function App() { if (process.env.NODE_ENV === "production") { - // Disable all console logs in production - console.log = () => {} - console.debug = () => {} - console.info = () => {} - + // Comment out console.log override temporarily for debugging + // console.log = () => {} + // console.debug = () => {} + // console.info = () => {} // Keep error and warn for debugging // console.error = () => {}; // console.warn = () => {}; } + // Add a debug message to verify console logging is working + console.log("App initialized, NODE_ENV:", process.env.NODE_ENV) + return ( diff --git a/src/shapes/VideoChatShapeUtil.tsx b/src/shapes/VideoChatShapeUtil.tsx index e278794..55bbde9 100644 --- a/src/shapes/VideoChatShapeUtil.tsx +++ b/src/shapes/VideoChatShapeUtil.tsx @@ -89,6 +89,12 @@ export class VideoChatShape extends BaseBoxShapeUtil { } async ensureRoomExists(shape: IVideoChatShape) { + console.log("Environment variables:", { + NODE_ENV: process.env.NODE_ENV, + allEnvVars: import.meta.env, + dailyApiKey: import.meta.env.VITE_DAILY_API_KEY, + }) + if (shape.props.roomUrl !== null) { return } @@ -101,6 +107,7 @@ export class VideoChatShape extends BaseBoxShapeUtil { "API Key format:", apiKey?.substring(0, 4) === "key_" ? "correct" : "incorrect", ) + console.log("Available env vars:", import.meta.env) if (!apiKey) { throw new Error("Daily API key is missing") diff --git a/vite.config.ts b/vite.config.ts index f24faac..a7e6629 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -23,7 +23,7 @@ export default defineConfig({ process.env.VITE_WORKER_URL, ), "import.meta.env.VITE_DAILY_DOMAIN": JSON.stringify( - "https://pc-bcedd8ead7044c64902f3c18973485b4.daily.co", + "https://mycopunks.daily.co", ), "import.meta.env.VITE_DAILY_API_KEY": JSON.stringify( process.env.VITE_DAILY_API_KEY,