Added env for client connection

This commit is contained in:
Umar Adilov 2026-01-19 13:38:53 +05:00
parent ef9ce95a79
commit c494d0b855

View File

@ -12,7 +12,8 @@ export const trpc: CreateTRPCReact<AppRouter, unknown> =
* Get the base URL for tRPC requests
*/
const BASE_URL =
process.env.VITE_TRPC_URL ||
(typeof globalThis.process !== "undefined" &&
globalThis.process.env?.VITE_TRPC_URL) ||
import.meta.env.VITE_TRPC_URL ||
"http://localhost:3001/api";