I'm encountering the following error in production: It's a Progressive Web App (PWA) built with React and Vite, and I have deployed it on AWS.
"Loading module from 'https://domainName/assets/index-CBWA-1nG.js' was blocked because of a disallowed MIME type ('text/html')."
Due to this, whenever I try to access the deployed version of my project, it only displays a blank white screen.
What could be causing this error, and how can it be resolved?