diff --git a/t3-nextauth/src/trpc/react.tsx b/t3-nextauth/src/trpc/react.tsx index 37a8002..461dd98 100644 --- a/t3-nextauth/src/trpc/react.tsx +++ b/t3-nextauth/src/trpc/react.tsx @@ -74,5 +74,6 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) { function getBaseUrl() { if (typeof window !== "undefined") return window.location.origin; 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}`; }