mirror of
https://github.com/ershisan99/www.git
synced 2026-01-29 21:02:08 +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() {
|
function getBaseUrl() {
|
||||||
const url =
|
if (typeof window !== 'undefined') return window.location.origin
|
||||||
process.env.NEXT_PUBLIC_API_URL ||
|
if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`
|
||||||
(typeof window !== 'undefined'
|
return `http://localhost:${process.env.PORT ?? 3000}`
|
||||||
? window.location.origin
|
|
||||||
: `http://localhost:${process.env.PORT ?? 3000}`)
|
|
||||||
|
|
||||||
console.log('using base url:', url)
|
|
||||||
return url
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user