can someone please explain how to use the next API in the production server? on my local works all fine but when deploying to vercel, got this error:
FetchError: request to http://localhost:3000/api/notes failed, reason: connect ECONNREFUSED 127.0.0.1:3000
makes sense that I don't have full access to their servers and ports... but I tried in my app to only const res = await fetch('/api/notes');
but got a TypeError: Only absolute URLs are supported
so I should use my static DNS for this? but it will be much easier, faster to pull data from localhost rather than go up to the internet and after come back with the data on the server... don't get it