Steven
Steven
Let's go ahead and ship this now that Next.js just landed: - https://github.com/vercel/next.js/pull/41150
@ishaqibrahimbot Thanks! I started a PR to bundle codemods: #42254
You can also use [Next.js Image Optimization](https://nextjs.org/docs/basic-features/image-optimization). Something like: ``` https://example.com/_next/image?url=%2Fapi%2Fog&w=1920&q=75 ``` Update: you can use `import { getImageProps } from 'next/image'` to generate this string
Perhaps [`@napi-rs/image`](https://www.npmjs.com/package/@napi-rs/image) might work and it would be even smaller. Although I'm not sure if it supports SVG though 🤔
Indeed, we we need to convert SVG → JPEG to make it worth while.
How about passing an allowlist? It might be hard to guess what users will want to preserve so best to let the user configure it.
This is a known bug: svg is not supported by pdf kit See https://github.com/vercel/satori/pull/118#issuecomment-1238215272 for more details. We should probably change the playground example to avoid this bug.
@ishaqibrahimbot Since you said you were interested: do you want to try and improve this? CI passes on my machine but seems to fail when running in github actions. Its...
Forgive me if this is the wrong place to ask, but how about changing the default `target` to `esnext` in a future release? This would make TS closer to a...
> introduced by https://github.com/vercel/next.js/pull/26843. Which removes the serverside emits to prevent duplicate file emits. However, it was wrongly chosen to do this in the client build instead of server build...