drone-s3-sync
drone-s3-sync copied to clipboard
blank content type for .mjs files
I'm using the plugin to upload a static Nuxt3 build to S3 in website mode.
I cannot serve the site because the .mjs files that landed on S3 do not have mime type attached.
In the browser:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
as an alternative this worked
{
name: 's3',
image: 'amazon/aws-cli:2.7.22',
commands: [
'aws s3 sync .output/public s3://my-ghpackages --delete',
],
environment: S3CacheEnv,
},