Azure Static Web Apps allows any developer to build modern web
applications that are automatically published from changes made in the git repository, and much more...
Here are 10 things to know to get started with Azure Static Web Apps!
What's Azure Static Web Apps?
@manekinekko
01โWhat's Azure Static Web Apps?
@AzureStaticApps is a service that automatically builds and deploys full-stack web apps to Azure (with a serverless Azure Functions API) from GitHub and DevOps repositories.
โ Build
โ Deploy
โ Publish11:05 AM - 02 Apr 2021
What contents can be deployed to Azure Static Web Apps?
@manekinekko
02โWhat contents can be deployed to Azure SWA?
@AzureStaticApps offers web hosting for static content like HTML, CSS, JavaScript, and images. Content that's generated by tools like Scully, Gatsby, Jekyll, or NuxtJS can also be published to Azure SWA.
11:05 AM - 02 Apr 2021
Does Azure Static Web Apps support serverless APIs?
@manekinekko
03โDoes Azure SWA support serverless APIs?
Serverless APIs can be used with @AzureStaticApps via integration with Azure Functions. If Azure SWA detects an /api folder, it will automatically build and deploy the API.
11:05 AM - 02 Apr 2021
How does Azure Static Web Apps work?
@manekinekko
04โHow does Azure SWA work?
@AzureStaticApps comes with GitHub and Azure Pipelines integration and automatically generates a workflow config in the repository, watching changes to trigger builds and deployments, to prod and pre-prod environments.
11:05 AM - 02 Apr 2021
What devtools does Azure Static Web Apps support?
@manekinekko
05โWhat dev tools does Azure SWA support?
@AzureStaticApps publishes content to a prod environment by building apps from a repository. It can deploy a web app using:
โ Visual Studio Code extension
โ Azure portal
โ Azure CLI
โ SWA CLI11:05 AM - 02 Apr 2021
How about custom domain names?
@manekinekko
06โHow about custom domain names?
@AzureStaticApps provides by default an auto-generated domain name. Adding a custom domain is supported and comes with free SSL certificates, which are automatically renewed.
11:05 AM - 02 Apr 2021
How to configure an Azure Static Web Apps app?
@manekinekko
07โHow to configure an SWA app?
Config is defined in the staticwebapp.config.json file to control:
โ Routing
โ Authentication
โ Authorization
โ Fallback rules
โ HTTP response overrides
โ Global HTTP headers
โ Custom MIME types11:05 AM - 02 Apr 2021
What about local dev?
@manekinekko
08โWhat about local dev?
@AzureStaticApps comes with a CLI that serves as a local dev tool. It can:
โ Emulate authentication and authorization
โ Serve API requests
โ Serve static app
โ Build the local static app and API backend11:05 AM - 02 Apr 2021
Does Azure Static Web Apps support PR changes preview?
@manekinekko
09โDoes @AzureStaticApps support PR changes preview?
Each time you create a pull request against the watched branch, a staged version with your changes is deployed to a distinct pre-production environment.
11:05 AM - 02 Apr 2021
How to secure apps with Azure Static Web Apps?
@manekinekko
10โHow to secure apps with SWA?
@AzureStaticApps streamlines the authentication experience by managing authentication with the following providers:
โ Azure Active Directory
โ GitHub
โ Facebook
โ Google
โ Twitter11:05 AM - 02 Apr 2021
Resources!
Deploy your favorite framework
- Deploy static-rendered Next.js websites on Azure Static Web Apps
- Deploy server-rendered Nuxt.js websites on Azure Static Web Apps
- Publish an Angular, React, Svelte, or Vue JavaScript app with Azure Static Web Apps
- Create and publish a static web app with Gatsby and Azure Static Web Apps
- Publish a Blazor WebAssembly app and .NET API with Azure Static Web Apps
Have fun!
Feel free to reach out on Twitter at @manekinekko if you want to get started with Azure Static Web Apps. You can also follow my work at wassim.dev.
Top comments (0)