Media files not working when debug equals false

I have tried the fixes on Google and Stackoverflow but still can’t get this to work. The media files work fine when debug equals true.

Any ideas would be appreciated. Thanks!