|
|
|
|
|
by freedomben
1187 days ago
|
|
Nice, thanks for the link. Those new docs do look great! I wanted to note that I'm not asking you to build this, I'm more sharing my use-case in case it's helpful feedback. What would really be amazing for me is a build-time image processing pipeline. Any images I use for the static site are already present in the repo (none are user-supplied or come from object storage, etc). Since all the image info is present at build/export time, it would be amazing if the image processing were done locally during the build and then the next/Image tags would instead of invoking server-side code, generate the static <img> code necessary to reference the different versions (such as srcset, sizes, etc)[1]. There is at least one open source project to do that, but at least when I last tried it, it was essentially dead on the vine. I searched around but couldn't find any solutions, which was pretty disappointing. I did end up shipping the app and just manually pipelined those images and hacked out the <img> tags instead of using the component, but if I had more than a handful in the site that wouldn't scale too well. Anyway, thanks for what you've done with next.js! it's really an incredible project and you've been an important part of moving the web forward. [1]: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimed... |
|