Skip to content

Instantly share code, notes, and snippets.

@ofhouse
Created March 16, 2021 13:35
Show Gist options
  • Save ofhouse/3e1280454cd99a14cafab0af199e6367 to your computer and use it in GitHub Desktop.
Save ofhouse/3e1280454cd99a14cafab0af199e6367 to your computer and use it in GitHub Desktop.
Changes to next.config.js needed for Terraform Next.js Image Optimization module for AWS.
module.exports = {
+ images: {
+ path: 'https://<distribution-id>.cloudfront.net/_next/image'
+ },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment