azure-static-web-apps
Installation
Summary
Deploy static sites and serverless APIs to Azure with local development emulation and CLI automation.
- Provides local emulator (
swa start) with API proxy, authentication simulation, and framework auto-detection for React, Vue, Angular, Next.js, and others - Supports Azure Functions backends with Node.js, Python, and .NET runtimes; configure via
staticwebapp.config.jsonfor routes, auth rules, and headers - Includes deployment workflow:
swa init(auto-detects framework),swa build,swa start(local testing),swa login, andswa deployto Azure - Integrates with GitHub Actions for CI/CD; auto-generates workflows or accepts manual configuration with deployment tokens
- Handles database connections, environment-specific deployments (preview/production), and dry-run previews before pushing live
SKILL.md
Overview
Azure Static Web Apps (SWA) hosts static frontends with optional serverless API backends. The SWA CLI (swa) provides local development emulation and deployment capabilities.
Key features:
- Local emulator with API proxy and auth simulation
- Framework auto-detection and configuration
- Direct deployment to Azure
- Database connections support
Config files:
swa-cli.config.json- CLI settings, created byswa init(never create manually)staticwebapp.config.json- Runtime config (routes, auth, headers, API runtime) - can be created manually