drone-s3-sync icon indicating copy to clipboard operation
drone-s3-sync copied to clipboard

blank content type for .mjs files

Open masterkain opened this issue 2 years ago • 1 comments

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.

masterkain avatar Aug 15 '22 09:08 masterkain

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,
      },

masterkain avatar Aug 15 '22 09:08 masterkain