Next.js is a React framework for building web applications. It offers server-side rendering, automatic code splitting, and client-side routing which all enhance performance and developer productivity. It’s favored for its ability to create high-performance, SEO-friendly websites.
pg
and exposes API routes. The frontend communicates with these routes to execute database queries and receive responses.
The following is an example of a route handler in Next.js:
./api/salesforce/products/select/route.js
and therefore results in the following endpoint:
api/salesforce/products/select
: