update stream card, update leaderboards on match finished webhook

This commit is contained in:
2025-04-24 01:23:19 +02:00
parent 2ede20f81c
commit 70cf0c1d9a

View File

@@ -87,12 +87,7 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) {
}
function getBaseUrl() {
const url =
process.env.NEXT_PUBLIC_API_URL ||
(typeof window !== 'undefined'
? window.location.origin
: `http://localhost:${process.env.PORT ?? 3000}`)
console.log('using base url:', url)
return url
if (typeof window !== 'undefined') return window.location.origin
if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`
return `http://localhost:${process.env.PORT ?? 3000}`
}