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>({
links: [
httpBatchLink({
url: "http://localhost:3000",
headers() {
return {
Authorization: apiToken
};
}
}),
// httpBatchLink({
// url: "http://localhost:3000",
// headers() {
// return {
// Authorization: apiToken
// };
// }
// }),
httpBatchLink({
url: "https://fishing.hri7566.info/api",
headers() {