diff --git a/apps/web/src/trpc/shared.ts b/apps/web/src/trpc/shared.ts index 921106ff3..d6c8c89c2 100644 --- a/apps/web/src/trpc/shared.ts +++ b/apps/web/src/trpc/shared.ts @@ -6,6 +6,8 @@ import superjson from "superjson"; const getBaseUrl = () => { if (typeof window !== "undefined") return ""; + if (process.env.VERCEL_ENV === "production") + return "https://www.openstatus.dev"; if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; // Vercel return "http://localhost:3000"; // Local dev };