Closed valentintorres02 closed 1 year ago
Hi @valentintorres02
Created a fresh project and deployed, but couldn't replicate your problem. Please provide a minimum reproducible repository.
Closing. Please feel free to re-open when you have a minimum reproducible repository.
Hi!
My routes are working fine at localhost (next dev and next start). But when I deploy everything to Vercel, I have an [promptId].ts endpoint that returns a 404 error (and it's just a blank response, I'm not even getting the next html error page)
The other routes without params work fine. My code:
I have
path-to-regexp
v6.2.1 installed.ts.config.json:
I have a standard Next.js app with standard Vercel deploy. Please let me know if you need any more data. Thanks in advance =)
Example request that works on localhost and does not work on vercel:
URL: https://twitter-automated-bot.vercel.app/api/prompt/14 BODY:
{"priority": 0, "text": "something"}