react-three-fiber animations does not work on Vercel but work on localhost

Hi!

I have a problem with Vercel. I have a next js project which completely works within localhost, codesandbox, stackbltz and others, but not on Vercel. I use react-three-fiber and drei for loading textures and animations of 3D models, and almost everything works except animation, loading mesh textures properly and animations. It is also freezes (Context lost error) when I load .hdr files as Environments (drei package).

This is a screenshot from the error: Next js Vercel texture loader error. - Album on Imgur

It is a private repo, but if it is necessary I can post it somehow.

Anyone else experiencing this? I tried to rebuild the whole project, but did not help…

Thank you in advance.!