Continuous Deployment of a Preact Site to an Azure Storage Static Website
Table of Contents Introduction Prerequisites Creating the Storage Account and Enabling Static Website Hosting Custom Domains and HTTPS Creating the Identity GitHub Will Authenticate As The Federated Credential Granting the Role GitHub Repository Secrets The Workflow Two Upload Passes, Two Cache Policies Why the Deploy Never Deletes Anything CORS on the API Adding Front Door or CDN Verifying a Deployment Troubleshooting Conclusion Introduction A Preact application built with Vite compiles to a handful of static files — one index.html, a folder of fingerprinted JS and CSS, and whatever images you imported. There is no server-side rendering step and no Node process to keep alive, so paying for an App Service or a container to serve them is pure waste. ...