Getting a 405 Method not allowed on Vercel

I cant do any requests with trpc, because I get a 405 method not allowed. - disabled the vercel authentication - allowed all origins and all methods from http at next.config.js - did ssr configuration at trpc
3 Replies
Hinky
Hinky2w ago
@Kaan did you have any luck?
cblberlin
cblberlin2w ago
check your middleware.ts "/api/uploadthing(.*)" should be a public route which will be accessed publicly
Hinky
Hinky5d ago
cheers for reply. Im not using uploadthing at all. For me error seems to come from going from next.js 13 to 14, i have two trpc routers for edge and then lambda, and for some reason the lambda side all go to 405 but edge is all good. No biggie, ill just chill on 13 for now