To benefit the community, posting the discussion from our private comments.
@Hussein Ismail , as you mentioned -
"This solved the issue. Thank you very much. I had to use Azure/static-web-apps-deploy@latest instead of @v1 to make it work. But now everything is green again. Thanks. "
(edit: added above comment from HusseinIsmail)
Kindly pass this extra flag.
is_static_export: true
This is due to recent changes -Please see this announcement, which specifies to use this flag to continue using nextjs export feature
Azure Static Web Apps now supports server-side rendering for Nextjs applications #921
Nextjs support on Azure Static Web Apps | Microsoft Learn
Please let us know, I'll follow-up with you further.
Much appreciate your patience and collaboration!
--
To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.