Use la imagen SVG en el próximo JS
import Image from 'next/img';
import Illustration from '../public/Rolling-1s-200px.svg';
// can be imported from anywhere, not necessarily public
// ...
<Image src={Illustration} />
// one needs to use `Illustration.src` to get the source URL
// <img src={Illustration.src} ... />
Wandering Wolf