Functions
Explore the utility functions available in the Next.Js SDK.
The JavaScript SDK provides a convenient set of utility functions for interacting with our client-facing APIs.
These functions can be used in any JavaScript environment, including Node.js, meaning that they can also be used in server-side rendered applications.
Looking for something specific?
Use the search bar at the top of the page or press / to quickly search through the documentation.
Use the summary below to quickly jump to a specific topic:
Page | Description |
---|---|
middleware | Handle the communication between the client and the server. |
withCroct | Wrap a Next.js API route handler with the Croct middleware. |
evaluate | Evaluate a CQL query in real-time. |
cql | Evaluate a CQL query in real-time using a tag function. |
fetchContent | Fetch content from a slot. |
identify | Associate the current session with an identified user. |
anonymize | Dissociate the current session from the identified user. |