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>({
|
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() {
|
||||||
|
|
Loading…
Reference in New Issue