When initializing a store on the client, there are lifecyclehooks that allow you to add many settings and improve many aspects. On the server, however, much of the logic runs asynchronously. We need to add functionality that would allow us, for example, to read cookies and similar tools from next.js and then make changes or perform the necessary actions.