Fixed server url
This commit is contained in:
parent
491483a71f
commit
47d6717815
|
|
@ -26,7 +26,7 @@ function getBaseUrl() {
|
||||||
export const trpcClient: TRPCClient<AppRouter> = trpc.createClient({
|
export const trpcClient: TRPCClient<AppRouter> = trpc.createClient({
|
||||||
links: [
|
links: [
|
||||||
httpBatchLink({
|
httpBatchLink({
|
||||||
url: `${getBaseUrl()}/api/trpc`,
|
url: `${getBaseUrl()}/trpc`,
|
||||||
// Optional: add headers, credentials, etc.
|
// Optional: add headers, credentials, etc.
|
||||||
// headers() {
|
// headers() {
|
||||||
// return {
|
// return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user