fixed (i think)

This commit is contained in:
Michael Freno
2025-12-19 15:52:44 -05:00
parent 004ab5407f
commit bc90adf839
4 changed files with 101 additions and 92 deletions

View File

@@ -1,5 +1,4 @@
import { createTRPCProxyClient, httpBatchLink, loggerLink } from "@trpc/client";
import { env } from "~/env/server";
import { AppRouter } from "~/server/api/root";
export const api = createTRPCProxyClient<AppRouter>({
@@ -7,6 +6,6 @@ export const api = createTRPCProxyClient<AppRouter>({
// will print out helpful logs when using client
loggerLink(),
// identifies what url will handle trpc requests
httpBatchLink({ url: `${env.VITE_DOMAIN}/api/trpc` })
httpBatchLink({ url: `${import.meta.env.VITE_DOMAIN}/api/trpc` })
]
});