ECONNREFUSED with TRPC call on Vercel
Anyone run into this before? I just deployed my app to Vercel and I run into this error when I trigger a procedure. Everything works in dev but I'm sure I could be missing some change that's needed for a remote server.
5 Replies
That IP is localhost
You need to configure the deployed code to point at the correct domains or IPs
@nlucas Thanks, yeah that seems to be the problem, but any idea where in the code I need to change this?
This is something you set up
on the client trpc setup most likely
in the Link
Guessing you mean these settings? I actually didn't touch them but I will try changing this up
Thanks for the help btw
yeah getBaseUrl will be the place to look
Might just need to ensure VERCEL_URL is set