TRPC Client side fetch fails only in production
Howdy,
I just spun up a create-t3-turbo app and started rebuilding my project in it and am having a weird issue in production envs.
On localhost all works well, but when running on Vercel all of my client side requests routed through trpc are failing with 404 not found...
If anyone has any idea please lmk, thanks!
3 Replies
Following this - Dont have the same issue or an answer, but Client side (only) TRPC failing when I deploy to Prod.
My first thoughts on your issue is its some env variables. The only env var I can see in the api/react is process.env.NODE_ENV but this didn't help my issue. 🤷♂️ Hope someone else knows
ended up being a dependency version issue i think (trpc or react query)... the queries were getting built wrong somehow as a result