Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
11 replies
Tom

trpc error when deploying t3 app in vercel

I've been building an app for a while now and have recently been inspired it to convert it to t3 stack. Everything works locally, but when I deploy it to vercel I get this error every time i attempt to hit a trpc endpoint:

2022-11-07T04:45:56.937Z    b22c8823-6d79-4af1-8c81-ee002eda2b66    ERROR    SyntaxError: Unexpected token ' in JSON at position 0
    at JSON.parse (<anonymous>)
    at /var/task/.next/server/pages/api/trpc/[trpc].js:1515:29
RequestId: b22c8823-6d79-4af1-8c81-ee002eda2b66 Error: Runtime exited with error: exit status 1
Runtime.ExitError


I'm kinda lost how to debug this. Anyone have any ideas?
Was this page helpful?