Fixed server url

This commit is contained in:
Umar Adilov 2026-01-08 22:32:50 +05:00
parent 491483a71f
commit 47d6717815

View File

@ -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 {