Base solution for your next web application
Open Closed

Deploying the Angular App to an Azure Static Web App #11588


User avatar
0
4Matrix created

Has anyone managed to deploy the Angular app to an Azure Static Web App? It seems like this is a much better fit than deploying it to an azure storage account that then requires a cdn etc. I found this guide on how to publish an angular app to a static web app but it only seems to work if you host you project in github, which we dont, we use DevOps. Am I missing something here? Is a Static Web App the best way to go for price, performance and convenience?! If so, any advice on how to setup deployment would be much appreciated!


2 Answer(s)
  • User Avatar
    0
    4Matrix created

    To add to my original question, I have found that the "Deploy Azure Static Web App (Preview)" Task in the build pipeline of Azure doesnt seem to like the Agent Specification being set to Windows so I have tried splitting the pipeline into 2 different jobs, using different agents but it still wont build. In the end I gave up and pushed the dist folder manually using SWA Deploy. Not ideal but it will do for now

    https://learn.microsoft.com/en-us/azure/static-web-apps/static-web-apps-cli-deploy

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @4Matrix

    Thank you for sharing your solution.