dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.64k stars 413 forks source link

Consider deployment story for static web apps/spa #2711

Open timheuer opened 6 months ago

timheuer commented 6 months ago

As some front-end apps get added for AppHost orchestration and thus also deployment, currently Dockerfile is the recommended (only?) approach. This will translate into a container resource for deployment manifest.

We should consider how to model specifically SPA-type front-ends in the AppHost that also would translate to new deployment endpoints more tailored to static web apps like storage, Azure SWA, etc.

kjbetz commented 1 month ago

I agree. I'm working on a current project that I would like to deploy an Angular SPA to an Azure Static Web App. The API deploying as a Container App and the DB provisioned as Postgres Flexible Server should be good. Would love to see this picked up.

Or/And also another scenario maybe... being able to build frontend and put into public folder of web app before it gets built and deployed as Azure Container App.