hexo-deployer-s3-cloudfront-bruce

Amazon S3 and Cloudfront deployer plugin for Hexo

Usage no npm install needed!

<script type="module">
  import hexoDeployerS3CloudfrontBruce from 'https://cdn.skypack.dev/hexo-deployer-s3-cloudfront-bruce';
</script>

README

hexo-deployer-s3-cloudfront

Amazon S3 and Cloudfront deployer plugin for Hexo. Based on Josh Strange's orginial plugin.

Installation

$ npm install hexo-deployer-s3-cloudfront --save

Usage

Add the plugin in the plugins list in _config.yml:

- hexo-deployer-s3-cloudfront

and configure the plugin in the same file with:

# You can use this:
deploy:
  type: s3-cloudfront
  bucket: <S3 bucket>
  aws_key: <AWS id key>  // Optional, if the environment variable `AWS_KEY` is set
  aws_secret: <AWS secret key>  // Optional, if the environment variable `AWS_SECRET` is set
  concurrency: <number of connections> // Optional
  region: <region>  // Optional, default: us-standard
  cf_distribution: <cloudfront distribution> // Which distribution should be invalidated?

Contributors

License

MIT