mirror of
https://github.com/ershisan99/www.git
synced 2026-01-03 12:35:24 +00:00
update stream card, update leaderboards on match finished webhook
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user