Fix content type of JS during AWS S3 sync #234
Labels
bug
Something isn't working.
Complexity - 2 Medium
Issue is estimated to require a moderate amount of code changes, affecting multiple files.
Importance - 3 High
A high-severity issue that impacts users' ability to scout.
Error when loading module scripts:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
By default aws s3 sync sets the content type of js files to text/plain. I fixed it manually by doing this sort of workaround by hand: https://stackoverflow.com/a/72594767/5121242 but I need to update the sync scripts to do this automatically, before I do any sort of future deployment.
The text was updated successfully, but these errors were encountered: