In your very link you can see that you can only add a handle to a third party loader. Their built in image optimization that works in vercel does not if you static export and host elsewhere.
Also, the image optimization on the default Next.js server, for example deployed to a $4 VPS, also works without Vercel.
[0]: https://www.npmjs.com/package/next-image-export-optimizer