I'm trying to host a project that I have in NEXTjs, everything works great. The problem comes when my page calls an api route that is normally in "api/name.js", in heroku this appears to me.
any idea how to solve it?