How to use Next.js as a backend for your frontend — Next.js · Smolify