Queries break when in production on Vercel; work on localhost
The query is called like this:
every query works on localhost, but once it's deployed to Vercel they all give this same error
19 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yup it is
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
hm true. and that does happen sometimes if it has an error. it returns the html from _document.tsx. i thought it was happening every time but when it's not having an error it only returns the json from trpc so i never looked into it
this is the response
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no this is for the api route
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i don't think so, everything has been working before. just for whatever reason this recent push caused these problems
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ah
Oh okay so that makes sense. the html comes when there's an error because vercel puts up this 500 page
i found a commit where it all works, the one right after is what has things break. later today ill look at the difference
an interesting thing i found is that on the deployments i get this error, it seems like vercel is hitting a cache...
maybe since it's returning a page idk
yea i have no clue, nothing really changed from the commit that worked to the commit that broke it