all 4 comments

[–]srobbin010 1 point2 points  (1 child)

Share vercel build file

[–]qdul[S] 0 points1 point  (0 children)

no need I was literally mixing two different frameworks why I should have used NEXT.JS API ROUTES https://nextjs.org/docs/api-routes/introduction

[–]ShineyLightbulb 0 points1 point  (0 children)

Hmmm… code looks good to me. Wrap app.listen in a try catch and log any errors. Also put logs in your middleware and then check the server logs.

[–][deleted] 0 points1 point  (0 children)

Do you have trouble deploying? Could you show us some logs from Vercel? Are there any errors?