Skip to content
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

Image optimizarion break on Nextjs 14.1 #384

Closed
VanThanh12195 opened this issue Mar 14, 2024 · 7 comments
Closed

Image optimizarion break on Nextjs 14.1 #384

VanThanh12195 opened this issue Mar 14, 2024 · 7 comments

Comments

@VanThanh12195
Copy link

It seems like image optimization does not work on Opennext:

Image below is the screenshort for image optimization lambda function:
image

@khuezy
Copy link
Contributor

khuezy commented Mar 14, 2024

Hi, can you specify your next and open-next version?
This might be a duplicate issue: #374

@conico974
Copy link
Contributor

It is also not the correct way to access this function.
You're accessing the lambda directly, you need to access it with an url like that : /_next/image?url=https%3A%2F%2Fopen-next.js.org%2Farchitecture.png&w=840&q=75

@VanThanh12195
Copy link
Author

Hi, can you specify your next and open-next version? This might be a duplicate issue: #374

I use Nextjs 14.1.3 and open-next 2.3.7

@VanThanh12195
Copy link
Author

It is also not the correct way to access this function. You're accessing the lambda directly, you need to access it with an url like that : /_next/image?url=https%3A%2F%2Fopen-next.js.org%2Farchitecture.png&w=840&q=75

I tried this: and got this error : "Cannot read properties of undefined (reading '0')"

@conico974
Copy link
Contributor

It looks like the open-next plugin is not applied
@VanThanh12195 Are you building on windows ? You should use WSL there

@VanThanh12195
Copy link
Author

It looks like the open-next plugin is not applied @VanThanh12195 Are you building on windows ? You should use WSL there

yes I am using win 11

@conico974
Copy link
Contributor

I'll close all the windows related issue in favor of #385

@conico974 conico974 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants