Closed siamahnaf closed 2 years ago
Duplicate of #41287. Please see the comment: https://github.com/vercel/next.js/issues/41287#issuecomment-1274642140
Could you please link to a reproduction or create a public repository with minimal code that reproduces the issue? :pray:
@balazsorban44, This is githup code repository- https://github.com/nekmart/nekmart
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: win32 Arch: x64 Version: Windows 10 Pro Binaries: Node: 16.17.0 npm: N/A Yarn: N/A pnpm: N/A Relevant packages: next: 12.2.6 eslint-config-next: 12.3.1 react: 18.2.0 react-dom: 18.2.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Here the bug is very critical. I create one project and I deploy this project to vercel. Here I get all images are optimized. When I upload new image from my dashboard, it also optimized this image.
But I need to deploy my project to aws ec2 linux server. That's why I choose nextjs output tracing features. That's I build a standlone mode by helping of this documentation- https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files
After building, When I start my server by running node server.js. It starts successfully. Everything is okay. I can see all image optimized with webp format. But after some time by reloading my page, I can see image optimization not working. Then I can see some images come with optimization and some images come without optimization. Some images come with webp format, and some images come with jpeg, png format. After deploying to aws ec2. When I load my page first time, I can see all images are optmized. But after reloading my page or after some time the image optimization not working.
Also, When I upload new image from my dashboard, that new image isn't come with optimizations.
***Note: In terminal I not finding any sharp related error. Actually, I am not Geeting any error in my terminal.
I also try next js latest version-
12.3.1
and12.3.2-canary.22
I use
next/image
component in this way in my project.<Image src={process.env.NEXT_PUBLIC_IMAGE_PATH + brand.image} width={25} height={25} alt={brand.name} />
All images should come with webp format! Even all new images after building my app uploading from dashboard. My Next js project is fully SSR. Now I need all the images will be optimized even Api called images uploading from dashboard. It needs optimized. Please help me. How can I solve this problem.
Expected Behavior
All images should come with webp format! Even all new images after building my app uploading from dashboard. My Next js project is fully SSR. Now I need all the images will be optimized even Api called images uploading from dashboard. It needs optimized. Please help me. How can I solve this problem.
Link to reproduction
https://www.nekmart.com
To Reproduce
Here I am creating re issue- Here is my previous issue. But I am not getting any reply from your part.
https://github.com/vercel/next.js/issues/41287