Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content type of JS during AWS S3 sync #234

Open
JL102 opened this issue Apr 3, 2024 · 0 comments
Open

Fix content type of JS during AWS S3 sync #234

JL102 opened this issue Apr 3, 2024 · 0 comments
Assignees
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.

Comments

@JL102
Copy link
Collaborator

JL102 commented Apr 3, 2024

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.

@JL102 JL102 added 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. labels Apr 3, 2024
@JL102 JL102 self-assigned this Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Development

No branches or pull requests

1 participant