Azure DevOps release pipeline not building the strapi backend corrently

System Information
  • Strapi Version: 4.5.6
  • Operating System: Windows Server 2019 with IIS
  • Database: MariaDB
  • Node Version: 16.15.x
  • NPM Version: 8.5.5

So I’ve setup Strapi Backend on a Windows Server 2019 running IIS. I’ve written up this document with all the steps I’ve followed to get where I’m stuck now.

It’s a release pipeline on Azure DevOps but it looks like it’s not building the backend and then it’s starting the backend but when I go to /admin I get a error : Warning : An error occurred while requesting the API which indicated the backend didn’t build correctly.

I’ve ran the npm run build on the actual server and it works perfect. Obviously then running the npm run start and that also works!

Anyone perhaps ran into this issue before and might have some insights and/or help. Or any Azure DevOps experts here!

PS. Found this setup details but it’s for Ubuntu only and Azure App Services.

Thanks :pray: