esanchezvz
Can't do server side data fetching with RSC.
Thanks, got it working. Still don't know what caused the issue. But the fix was to move the trpc api url to an env variable, as importing the
getBaseUrl
and passing it as part of the string to url
option for httpBatchLink
and adding the 'use server' directive to it or /web/src/app/trpc/server.ts didn't work. But env variables works and is a better approach in imo.
Thanks man!5 replies