Use WunderGraph to make your data-source accessible through JSON-RPC to your Next.js app.
WunderGraph