Change tRPC client link

This commit is contained in:
Hri7566 2024-03-05 18:55:49 -05:00
parent 3bd0696508
commit f1602461f7
1 changed files with 8 additions and 8 deletions

View File

@ -5,14 +5,14 @@ const apiToken = process.env.FISHING_TOKEN as string;
export const trpc = createTRPCClient<AppRouter>({ export const trpc = createTRPCClient<AppRouter>({
links: [ links: [
httpBatchLink({ // httpBatchLink({
url: "http://localhost:3000", // url: "http://localhost:3000",
headers() { // headers() {
return { // return {
Authorization: apiToken // Authorization: apiToken
}; // };
} // }
}), // }),
httpBatchLink({ httpBatchLink({
url: "https://fishing.hri7566.info/api", url: "https://fishing.hri7566.info/api",
headers() { headers() {