-
Notifications
You must be signed in to change notification settings - Fork 153
Next 14.1.1 Image Optimization Breaking Changes #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As of now, I patched the image optimization adapter manually as a workaround. |
@chungweileong94 would you mind putting up a PR for that? |
I would love to, but that will means that the minimum NextJS has to be 14.1.1 tho, any idea how to handle backward compatibility? |
I mean like is there any existing version specific code that already exists in the codebase? |
We have a very hacky plugin system that replacing code during the prebuild time. See: https://github.com/sst/open-next/blob/main/packages/open-next/src/adapters/plugins/14.1/util.ts For the individual files, we do this:https://open-next.js.org/inner_workings/plugin |
Ah I see, will take a look at that, thx for the info! |
Open-Next Image Optimization Code
New
nextjs
codeopen-next
image-optimization handler to sync w/ the new breaking changesContent-Type
to beimage/webp
The text was updated successfully, but these errors were encountered: