Plans for the Static Web Apps #280
-
Forgive me if this is a stupid question. I'm a bit stuck on understanding the purpose of the extension for Static Web Apps considering the note in the ReadMe:
So if it doesn't support a deployment scenario what exactly the purpose of developing with this? I mean isn't the whole thing really only useful if we can deploy it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The goal of Aspire isn't to be seen exclusively as a pathway to deployment, it can be used as a deployment tool but it also has strengths as a tool that focuses on the developer inner loop. Let's say you already have a deployment pipeline in your application, Aspire can still offer benefits in managing the resources locally to stand up databases, provide (local) service discovery, introduce consistency on resilience in HTTP retry and a standard approach to logging/tracing via OTEL. None of that would require you to change your deployment process, you'd just not run The SWA emulator integration came about because I work on that sort of a project at Microsoft. In it we have a Blazor admin system and an API backend + React frontend (deployed to SWA with Container Apps). This uses some AI resources and a PostgreSQL database that needs to be available to both the Blazor admin and API. Local dev is a cobbled together set of scripts to pull containers, ensure the networking is configured for "service discovery", create AI resources, and so on. It's a bit fragile but it works. So, I want to use Aspire to simplify that, and one of the things I need to do is "simulate" SWA locally, which we were doing, but again, it required additional scripts to be run outside of VS to ensure everything starts. And deployment is not a concern since we already have a large amount of IaC that handles that in ways that Aspire simply wouldn't be capable of, at least not presently. Would I like the SWA integration to support deploying SWA resources? Yes, but currently Aspire is focused on deployment of container resources. You could have Aspire deploy everything except the SWA resource and just add that to the |
Beta Was this translation helpful? Give feedback.
The goal of Aspire isn't to be seen exclusively as a pathway to deployment, it can be used as a deployment tool but it also has strengths as a tool that focuses on the developer inner loop.
Let's say you already have a deployment pipeline in your application, Aspire can still offer benefits in managing the resources locally to stand up databases, provide (local) service discovery, introduce consistency on resilience in HTTP retry and a standard approach to logging/tracing via OTEL. None of that would require you to change your deployment process, you'd just not run
azd up
against the app host at any point.The SWA emulator integration came about because I work on that sort of a project at…