This is a port of Vercel's Image Optimization Example using Remix.
https://remix-vercel-image.vercel.app
This is a fresh installation via npx create-remix@latest
with the additional images
object passed to remix.config.js
// remix.config.js
module.exports = {
// ...
images: {
sizes: [256, 384, 600, 1000],
domains: [],
minimumCacheTTL: 60,
formats: ['image/webp', 'image/avif'],
},
// ...
};
This is built locally using a patched version of Vercel's cli.
You can track the progress in vercel/vercel#8217.