Create your own serverless image optimizer for Next.js in 5 minutes

Architecture diagram of the Terraform Next.js Image Optimization module for AWS
Serverless AWS stack for image optimization with Next.js

Deploy the serverless image optimizer to AWS

All you need to create your own image optimizer in 5 minutes is an AWS account and Terraform installed.

Configuration of the Image Optimization module
terraform init
terraform apply
Apply complete!Outputs:domain = "<distribution-id>.cloudfront.net"
Changes in the Next.js configuration

Looking for a full stack solution to deploy Next.js on AWS?

If you don’t want to mess around with configuration and want a complete solution to host Next.js serverless on AWS, please checkout our Terraform Next.js module for AWS. It has image optimization already built in and can handle most features from Next.js in a cost-efficient way.

House of Internet. https://felix.house

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store