Import ImageResponse from next/og
ProprietaryNext.js 14 deprecated the ImageResponse export of next/server. Imports it from next/og instead, keeping an alias, and leaves the other next/server imports in place.
io. moderne. nextjs.14. next-og-importmod run . --recipe= io. moderne. nextjs.14. next-og-importInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.