Introducing App Service Static Web Apps
Modern web apps are increasingly adopting static front-end design patterns with client-side processing powered by JavaScript. This paradigm requires us to think differently about how we deploy and host web apps that don’t rely on web servers and consequently require a new structure of supporting cloud resources. This week at Build, our annual celebration of all things developer, we are happy to announce that Azure App Service has been expanded with a new hosting offer tailored specifically for static web apps, empowering developers to focus on the business logic that differentiates their apps rather than the infrastructure that hosts them.
App Service Static Web Apps is now available in preview for developers building modern, full stack JavaScript web apps with static front-ends and optional dynamic back-ends powered by serverless APIs.
With Static Web Apps, developers can use modular and extensible patterns to deploy apps in minutes while taking advantage of the built-in scaling and cost-savings offered by serverless technologies. Pre-rendering static content (including HTML, CSS, JavaScript, and image files) and leveraging global content distribution to serve this content removes the need for traditional web servers generating the content with every request. Moving dynamic logic to serverless APIs unlocks dynamic scale that can adjust to demand in real time and can empower developers to access the benefits of microservices as they evolve and extend individual app components. The service is designed for developers using frameworks like Angular, React, Svelte, and Vue or static site generators like Gatsby looking for a simple interface to deploy the cloud resources.
Go from code to scale!
Static Web Apps automates the tedium of getting your static web app from source code in GitHub to global high-availability hosting. The development experience is optimized around the open-source tools developers already use, from a dedicated VS Code extension for local development to native Github workflows for CI/CD powered by GitHub Actions.
Validate pre-production changes easily with pull request previews. When a pull request is submitted, the branch is automatically built in a pre-production environment and a preview URL is provided right in the Github pull request comment thread.
Static Web Apps integrates with Azure Functions to provision serverless APIs that enable dynamic, fully-featured backend services that are securely accessible from the static front-end.
The service also supports a unified definition for routing rules and authorization behavior across the static content and dynamic APIs. You can even generate invitations to associate end users with roles for multiple identity providers. Authorized users are granted access to routes by rules you define in a routes.json file.
Learn more and get started today
More feature are available to explore in the Static Web Apps documentation including mapping custom domains and app settings configuration. The Static Web Apps public preview starts with a Free plan so you can explore this new solution without charges for the hosting and global distribution of the static web app content.
Get started today!
- Visit the Static Web Apps quickstart to build and deploy your first static web app in minutes.
- See the Static Web Apps documentation for more info about Static Web Apps.
- Follow the guided learning paths in Microsoft Learn for creating and publishing an Angular, React, Svelte, or Vue JavaScript app and API or for creating and publishing an app with the Gatsby static site generator.
We’d love to hear your feedback! Please open an issue in the Static Web Apps Github repo.