Fix tRPC URL

This commit is contained in:
Hri7566 2024-07-07 09:21:54 -04:00
parent 9ece949220
commit 5cc71cfdbb
1 changed files with 2 additions and 2 deletions

View File

@ -6,14 +6,14 @@ import type { AppRouter } from "@server/api/trpc";
export function gettRPC(token: string) { export function gettRPC(token: string) {
return createTRPCClient<AppRouter>({ return createTRPCClient<AppRouter>({
links: [ links: [
httpBatchLink({ /*httpBatchLink({
url: "http://localhost:3000", url: "http://localhost:3000",
headers() { headers() {
return { return {
Authorization: token Authorization: token
}; };
} }
}), }),*/
httpBatchLink({ httpBatchLink({
url: "https://fishing.hri7566.info/api", url: "https://fishing.hri7566.info/api",
headers() { headers() {