Added env for client connection
This commit is contained in:
parent
ef9ce95a79
commit
c494d0b855
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user