Fix tRPC URL
This commit is contained in:
parent
9ece949220
commit
5cc71cfdbb
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue