azure-swa-gotchas skillA
azure-swa-gotchas is agent-read markdown (skill) from fabioc-aloha/alex_skill_mall: Time saved: 2-4 hours per issue.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Azure Static Web Apps Gotchas
**Time saved**: 2-4 hours per issue
---
## The Problem
Azure Static Web Apps is powerful but has numerous edge cases that cause silent failures or confusing behavior. The documentation covers the happy path; these are the unhappy paths.
## Why This Is Hard to Find
- Each gotcha is documented somewhere, but scattered across GitHub issues, Stack Overflow, and blog posts
- Error messages often don't indicate the root cause
- Some behaviors are undocumented "features"
- The combination of SWA + Functions + Auth creates emergent failure modes
---
## The Gotchas
### 1. Auth Route Ordering Matters
**Symptom**: Login callbacks return 401 → infinite redirect loop
**Cause**: `/.auth/*` routes must be explicitly allowed for `anonymous` BEFORE any `/*` wildcard with `authenticated`.
**Solution**:
```json
{
"routes": [
{ "route": "/.auth/*", "allowedRoles": ["anonymous"] },
{ "route": "/*", "allowedRoles": ["authenticated"] }
]
}
```
**Time saved**: 1-2 hours
---
### 2. Embedded API Overrides Linked Backend
**Symptom**: Your linked Function App returns 404, but embedded Functions work
…Read the whole file at its exact version.
How to install
mdr add fabioc-aloha/alex_skill_mall/azure-swa-gotchas@git:20260728.80a7ab6mdr add fabioc-aloha/alex_skill_mall/azure-swa-gotchas@sha256:93a6dc6980da3fd7Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_4ujps6beqcmn22u3)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5884 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
fabioc-aloha/alex_skill_mall · 4 stars · license MIT · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4ujps6beqcmn22u3 GET https://markdownregistry.com/api/v1/resolve?ref=fabioc-aloha/alex_skill_mall/azure-swa-gotchas GET https://markdownregistry.com/api/v1/blob/93a6dc6980da3fd7fa9a6001d78cf944253955b37fae78793036f2b2b0c583bb
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.