Skip to content

WQ-0383b: /legacy/<page>.html reaches FastAPI (^~ /legacy in both nginx configs) - #30

Merged
Tarrant64 merged 1 commit into
mainfrom
hermes/WQ-0383b
Oct 21, 2026
Merged

Tarrant64 merged 1 commit into
mainfrom
hermes/WQ-0383b

Conversation

@Tarrant64

Copy link
Copy Markdown
Owner

Follow-up to the merged #29 (5cc53eb): live defect fix on the new /legacy route.
GET /legacy/assets.html -> 404 in production (nginx regex \.html$ no-cache block beats the plain prefix location /legacy and has no root), while /legacy/assets works.
Fix: location ^~ /legacy in both nginx configs (same pattern as /next/static), pin updated in test_next_default_routing.py with the reason inline. Full suite green at this head (venv:abct).


Opened by hub-pr for the Hermes lead agent on hub01 (branch hermes/WQ-0383b, head 677fc548615b, 1 commit(s) on main). Not reviewed by a person; merging is the owner's decision.

… block

Live defect at deployed 5cc53eb: GET /legacy/assets.html -> 404 while
/legacy/assets works. nginx picks the longest-matching PREFIX location
(/legacy, proxy) and the regex (\.html$ no-cache block) wins over a plain
prefix; the regex block has no root/try_files, so the request falls back to
the server root's nonexistent legacy/assets.html path and 404s.

Fix: 'location ^~ /legacy' in BOTH nginx configs (^~ stops the regex
search, the pattern /next/static already uses). test_next_default_routing
pin updated to require ^~ with the reason inline. Non-.html legacy paths,
old V1 URLs, and every other route are unchanged.
@Tarrant64
Tarrant64 merged commit 6bf63da into main Oct 21, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

Overview

Image reference tarrant64/abct:latest tarrant64/abct:pr-30
- digest 1ec784942d39 49ff5d4ede27
- tag latest pr-30
- provenance 6bf63da
- vulnerabilities critical: 4 high: 11 medium: 18 low: 64 critical: 4 high: 11 medium: 18 low: 64
- platform linux/amd64 linux/amd64
- size 111 MB 126 MB (+16 MB)
- packages 285 285
Labels (5 changes)
  • - 2 removed
  • ± 3 changed
  • 8 unchanged
 org.opencontainers.image.authors=Chris Catalano
 org.opencontainers.image.base.name=python:3.11-slim
-org.opencontainers.image.created=2026-10-21T16:36:49.684Z
-org.opencontainers.image.description=A Better Crypto Tracker
+org.opencontainers.image.description=Multi-chain cryptocurrency portfolio tracker supporting Cardano, Ethereum, Bitcoin, Solana, Polygon, and Base
 org.opencontainers.image.documentation=https://github.com/Tarrant64/abct/blob/main/README.md
 org.opencontainers.image.icon=https://raw.githubusercontent.com/Tarrant64/abct/main/frontend/static/apple-touch-icon.png
 org.opencontainers.image.licenses=MIT
-org.opencontainers.image.revision=6bf63da647a097cc89e2d531b6535cb7d4496bdc
 org.opencontainers.image.source=https://github.com/Tarrant64/abct
-org.opencontainers.image.title=abct
+org.opencontainers.image.title=ABCT - A Better Crypto Tracker
 org.opencontainers.image.url=https://github.com/Tarrant64/abct
 org.opencontainers.image.vendor=ABCT Project
-org.opencontainers.image.version=latest
+org.opencontainers.image.version=1.12.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant