Missing middleware

Find out how to configure the Croct middleware.

If you forget to configure the middleware in your Next.js application, you will see an error like the one below:

This happens because all SDK functions depend on request-specific information provided by the middleware to work properly.

Check the configuration section for instructions on how to set up the middleware.