{
.finally(() => setIsLoading(false))
}, [])
+ // useEffect(() => {
+ // // Disable Daily.co debug logs
+ // if (window.DailyIframe) {
+ // window.DailyIframe.setLogLevel("error")
+ // }
+ // }, [])
+
if (isLoading) {
return (
({
return corsify(response)
},
],
- catch: (e) => {
+ catch: (e: Error) => {
+ // Silently handle WebSocket errors, but log other errors
+ if (e.message?.includes("WebSocket")) {
+ console.debug("WebSocket error:", e)
+ return new Response(null, { status: 400 })
+ }
console.error(e)
return error(e)
},