I found the reason. If anyone will run into the same problem, which I doubt, I rendered the Logo component on the server and this, of course, didn't work. I've replaced it with PrismicNextImage and now it works just fine:)
2 Likes