3 ms·
API routes is what they refer to with the Next.js BFF approach: https://nextjs.org/docs/api-routes/introduction https://nextjs.org/docs/api-routes/introduction
by jacobr 6y ago
API routes is what they refer to with the Next.js BFF approach: https://nextjs.org/docs/api-routes/introduction https://nextjs.org/docs/api-routes/introduction
It’s useful if you need to call an API from the client in a Next.js application but modify the data first, or call multiple endpoints without introducing a waterfall to the client. What you described can be used in a similar way for filtering and processing etc, but only for the initial page load.