Open mllamazares opened 2 years ago
Had the same issue, this config helped. https://github.com/Jam3/nextjs-boilerplate/blob/637fa801680f92c2e82cbfc576e7ac493c6e0e0a/next.config.js
Thanks for sharing! I'm not able to test it right now, though. Could you elaborate a bit on what was the issue and which instruction fixed it?
I've set up my next.config.js like this:
Then, I've installed all the required plugins:
Then, in my Image component, I've hardcoded an URL for testing purposes:
However, the output image does not get any compression (1.06MB), although it has the slug set after being processed: https://github.com/mllamazares/mllamazares.github.io/blob/gh-pages/_next/static/media/bigaf1.8f461a11b3d4fab845e830dc3296560f.png
This is the original image (of the exact same size): https://github.com/mllamazares/mllamazares.github.io/blob/gh-pages/static/images/bigaf1.png
I've also tried with
.jpg
or.jpeg
images, but I face the same issue. What am I missing? Any ideas? Thanks!