From 032587b9cf768d1955decef407e27336e542a515 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Thu, 18 Dec 2025 20:45:35 +0100 Subject: [PATCH] fix: trpc base link (#1666) --- apps/web/src/trpc/shared.ts | 2 ++ 1 file changed, 2 insertions(+) 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 }; -- 2.54.0