MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / getUrl

Function getUrl

src/trpc/client.tsx:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 return browserQueryClient;
24}
25function getUrl() {
26 const base = (() => {
27 if (typeof window !== 'undefined') return '';
28 if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`;
29 return 'http://localhost:3000';
30 })();
31 return `${base}/api/trpc`;
32}
33export function TRPCReactProvider(
34 props: Readonly<{
35 children: React.ReactNode;

Callers 1

TRPCReactProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected