Help with S3 storage and CDN

I’ve fixed everything so far and I found the problem. The language settings in middleware. If I set language : { enabled: true} everything breaks. When it set it to false it works again. I have no idea why or how important it is to my client. I will have to ask.