Skip to content

v12.1.0

Compare
Choose a tag to compare
@ofhouse ofhouse released this 04 Apr 12:51
· 23 commits to main since this release

Breaking Changes

  • The module now requires AWS Provider Version v4.8.0 or higher.
    Please follow the official upgrade guide when upgrading from the v3 provider: Terraform AWS Provider Version 4 Upgrade Guide.
    We also have updated our examples accordingly: Examples

  • SVG is no longer automatically optimized.
    For security reasons Next.js has disabled the optimization of SVG images by default, instead they added two new options dangerouslyAllowSVG & contentSecurityPolicy to the Next image config: Dangerously Allow SVG.
    To use them together with the module we introduced 2 new variables next_image_dangerously_allow_SVG & next_image_content_security_policy that can be used to configure the behaviour:

    module "next_image_optimizer" {
      source = "milliHQ/next-js-image-optimization/aws"
    
    + next_image_dangerously_allow_SVG   = true
    + next_image_content_security_policy = "default-src 'self'; script-src 'none'; sandbox;"
    }
    

Changelog

  • Ensure compatibility with AWS Provider Version 4 (#119, #120)
  • Uses Image Optimizer module of Next.js 12.1.0 (#123)
  • Adds option to enable SVG support (#124)