fix domain url
This commit is contained in:
parent
e947d124ce
commit
baf1efce43
12
src/App.tsx
12
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 (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
|
|
|
|||
|
|
@ -89,6 +89,12 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
|
|||
}
|
||||
|
||||
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<IVideoChatShape> {
|
|||
"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")
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue