This commit is contained in:
Andras Bacsai
2025-10-06 20:29:34 +02:00
parent b9423600b7
commit 93fc63b432

View File

@@ -74,5 +74,6 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) {
function getBaseUrl() { function getBaseUrl() {
if (typeof window !== "undefined") return window.location.origin; if (typeof window !== "undefined") return window.location.origin;
if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`;
if (process.env.COOLIFY_URL) return process.env.COOLIFY_URL;
return `http://localhost:${process.env.PORT ?? 3000}`; return `http://localhost:${process.env.PORT ?? 3000}`;
} }