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

Incorrect mime type for .css files after uploading docs to S3 #8475

Open
nirinchev opened this issue Feb 5, 2024 · 0 comments
Open

Incorrect mime type for .css files after uploading docs to S3 #8475

nirinchev opened this issue Feb 5, 2024 · 0 comments
Assignees

Comments

@nirinchev
Copy link
Member

Discussed briefly in this slack thread: https://mongodb.slack.com/archives/CLY6HQWUE/p1707132051820689

tl;dr: looks like our upload to S3 pushes the .css files as text/plain and we need to add the --guess-mime-type argument to the s3cmd calls here:

realm-swift/build.sh

Lines 1087 to 1091 in dfb165e

s3cmd put --recursive --acl-public --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} swift_output/ s3://realm-sdks/docs/realm-sdks/swift/${VERSION}/
s3cmd put --recursive --acl-public --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} swift_output/ s3://realm-sdks/docs/realm-sdks/swift/latest/
s3cmd put --recursive --acl-public --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} objc_output/ s3://realm-sdks/docs/realm-sdks/objc/${VERSION}/
s3cmd put --recursive --acl-public --access_key=${AWS_ACCESS_KEY_ID} --secret_key=${AWS_SECRET_ACCESS_KEY} objc_output/ s3://realm-sdks/docs/realm-sdks/objc/latest/

@nirinchev nirinchev self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant