Added env for client connection
This commit is contained in:
parent
f7419462f1
commit
ef9ce95a79
|
|
@ -11,7 +11,10 @@ export const trpc: CreateTRPCReact<AppRouter, unknown> =
|
||||||
/**
|
/**
|
||||||
* Get the base URL for tRPC requests
|
* Get the base URL for tRPC requests
|
||||||
*/
|
*/
|
||||||
const BASE_URL = import.meta.env.VITE_TRPC_URL || "http://localhost:3001/api";
|
const BASE_URL =
|
||||||
|
process.env.VITE_TRPC_URL ||
|
||||||
|
import.meta.env.VITE_TRPC_URL ||
|
||||||
|
"http://localhost:3001/api";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create tRPC client
|
* Create tRPC client
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user