tRPCttRPC
Powered by
jaiJ
tRPC•4y ago•
24 replies
jai

Queries break when in production on Vercel; work on localhost

The query is called like this:
  const { data } = api.useQuery(["user.!getCount"], {
    refetchInterval: interval * 1000,
    onSuccess: () => ...
  }
  const { data } = api.useQuery(["user.!getCount"], {
    refetchInterval: interval * 1000,
    onSuccess: () => ...
  }

every query works on localhost, but once it's deployed to Vercel they all give this same error
unknown.png
unknown.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Getting 413 error in Vercel when batching several queries (using Next pages router)
rodrigowplRrodrigowpl / ❓-help
3y ago
In my NEXTJS app can read value next-auth session in localhost ,but not when deployed to Vercel
Teodorant, Tech-PriestTTeodorant, Tech-Priest / ❓-help
2y ago
Queries work but mutations do not
xdxd#5555 / hanyaXxdxd#5555 / hanya / ❓-help
3y ago