Google can index JS-loaded images when properly configured. Check rendered HTML in Search Console to diagnose why images aren't appearing. Update XML sitemaps and add alt text to maximize JS image ...
GitHub

Node.js

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and ...
A critical Next.js flaw could allow remote code execution via the Node.js ImageResponse implementation in next/og.