fix(demo): nginx cache regex was 404ing all /app/ shell assets #82

Merged
ai merged 1 commits from demo-nginx-app-assets into main 2026-07-15 08:45:44 +00:00
Collaborator

Root cause of the still-broken Bitcoin UI after #81: nginx regex locations beat prefix locations, so /app/**/*.css|js|png|jpg|svg matched the static-cache block and was served (404) from the web root instead of being proxied to the mock backend. ^~ on the /app/ prefixes fixes it. Validated with nginx -t.

🤖 Generated with Claude Code

Root cause of the still-broken Bitcoin UI after #81: nginx regex locations beat prefix locations, so `/app/**/*.css|js|png|jpg|svg` matched the static-cache block and was served (404) from the web root instead of being proxied to the mock backend. `^~` on the `/app/` prefixes fixes it. Validated with `nginx -t`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ai added 1 commit 2026-07-15 08:45:13 +00:00
nginx regex locations outrank prefix locations, so app-shell assets like
/app/bitcoin-core/tailwind.css and /app/lnd/qrcode.js hit the .css/.js
cache block and 404'd from the web root instead of proxying to the mock
backend — the actual cause of the unstyled Bitcoin UI (and the shabby
lnd-ui) on the demo. ^~ on the /app/ prefixes disables regex matching
for those paths. Config validated with nginx -t.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ai merged commit eaf8b7b63e into main 2026-07-15 08:45:44 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lfg2025/archy#82
No description provided.