Last year we’ve spent quite some time getting Sitecore JSS Next.js to work on Azure (with ISG & build-in APIs). However, some issues have come up since then.
First of all, everything broke when I updated to Next 12 and I had to make some changes to get it to work again. I was getting some weird re-directs.
Later Azure functions v4 was released and proxies are not supported anymore.
Things like this make me wonder if it’s worth trying to maintain the custom hosting solutions of Next.js and support all the functionality. With Vercel everything just works.