init (deprecated)
Version:
Warning
Deprecated. Use the core package to initialize the Cloud SDK and its packages. See also install and initialize the Cloud SDK.
|
Type |
Function |
|
Import path |
|
Initializes the server module of the Cloud SDK personalize package.
Important
Run init before running other functions in the module.
Signature
Parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
|
Required. The HTTP request. |
|
|
|
Required. The HTTP response. |
|
|
Required. Details about your SitecoreAI instance and cookie settings. |
ServerSettings properties
ServerSettings propertiesReturn value
Returns a promise. The promise resolves with an object that handles the module functionality.
Examples
Next.js
Here's an example middleware.ts script showing how to initialize the module: