Coder Social home page Coder Social logo

Comments (7)

ofhouse avatar ofhouse commented on July 19, 2024 2

Hi Christoph,
I've run a quick test with next/image and it is currently not supported, since in serverless mode this feature is provided by the Vercel edge CDN and is not a core feature from Next.js.

As a workaround you could use an external cloud provider for image optimization: https://nextjs.org/docs/basic-features/image-optimization#loader

However we plan to support this feature soon by releasing another Terraform module that can be used as external loader for existing Next.js setups or together with this module.

from terraform-aws-next-js.

ofhouse avatar ofhouse commented on July 19, 2024 1

Okay, I made a little POC and it seems that is is doable with little effort: https://github.com/dealmore/terraform-aws-next-js-image-optimization

However with testing etc. I expect that this takes about two weeks before we can land it here.
Will update the issue when I have more to share.

from terraform-aws-next-js.

christophebeling avatar christophebeling commented on July 19, 2024 1

That looks great - thanks a lot. If there's anything I can support you with let me know.

from terraform-aws-next-js.

christophebeling avatar christophebeling commented on July 19, 2024

Hi, is there any update on this?

from terraform-aws-next-js.

ofhouse avatar ofhouse commented on July 19, 2024

Unfortunately I didn't have as much time as I had hoped initially πŸ™ˆ
Anyway we are pretty close to the release of the standalone module, which is tracked here: milliHQ/terraform-aws-next-js-image-optimization#1.

Currently I target early next week for a release of the standalone version and we plan to publish a 0.7.0 version of this module which includes image support in the same week.

from terraform-aws-next-js.

ofhouse avatar ofhouse commented on July 19, 2024

We have now released v1.0.0 of the standalone module here: https://registry.terraform.io/modules/dealmore/next-js-image-optimization/aws

We will continue integrating the standalone module into this module in the next week.

from terraform-aws-next-js.

ofhouse avatar ofhouse commented on July 19, 2024

Support for next/image component was added as part of the v0.7.0 release.

from terraform-aws-next-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.