This repository showcases different options to integrate Constructor.io client libraries into a Next.js project.
Recommended - This option is the simplest to implement, yields the fastest response times, and avoids the need to install multiple client libraries.
In this option, requests are made directly from the end user's browser to Constructor.io servers. As a result, the end to end response time is fastest.
constructorio-client-javascript
ExampleThis option uses server-side rendering utilizing only the server side client library.
The data is fetched on the server and passed to the client through Next.js. Next Router can be used to refresh props (fetch new results) after user interacts with the page.
Example