Change tRPC client link
This commit is contained in:
parent
3bd0696508
commit
f1602461f7
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue