Openstatus www.openstatus.dev

fix: trpc base link (#1666)

authored by

Maximilian Kaske and committed by
GitHub
032587b9 578f659d

+2
+2
apps/web/src/trpc/shared.ts
··· 6 6 7 7 const getBaseUrl = () => { 8 8 if (typeof window !== "undefined") return ""; 9 + if (process.env.VERCEL_ENV === "production") 10 + return "https://www.openstatus.dev"; 9 11 if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; // Vercel 10 12 return "http://localhost:3000"; // Local dev 11 13 };