NEXTJS_NO_FETCH_IN_SERVER_PROPS
Conformance is available on Enterprise plans
Since both and API routes run on the server, calling on a non-relative URL will trigger an additional network request.
Instead of using to make a call to the API route, you can instead share the code in a shared library or module to avoid another network request. You can then import this hared logic and call directly within your function, avoiding additional network requests entirely.
Was this helpful?