fix(frontend): remove redundant, ignored _redirects rule

Cloudflare's deploy log has been flagging the SPA fallback rule
(/* /index.html 200) as a false-positive infinite loop and ignoring
it on every deploy. Investigated live: direct navigation to /about, a
dynamic route, and a genuinely invalid path all return 200 with the
correct content already, since Cloudflare Pages' own default fallback
serves index.html for any unmatched path. The rule was dead weight --
removing it to stop the recurring warning noise. Closes the tracked
issue in CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Shekhar Vaidya 2026-07-21 10:19:50 +05:30
parent 73eee730c9
commit 5a806eea87
2 changed files with 7 additions and 4 deletions

View file

@ -39,6 +39,10 @@ negative cache (60s), dynamic TTL, stale-on-failure, jitter. Verified in product
### Known bugs / open issues
- [ ] **`_redirects` Cloudflare Pages** — SPA fallback rule (`/* /index.html 200`) is flagged
as an infinite loop and ignored by Cloudflare Pages, potentially causing 404s on
direct navigation to non-home routes. Needs investigation and fix.
- [x] **`_redirects` Cloudflare Pages** — investigated 2026-07-21. The rule was indeed ignored
(Cloudflare's deploy log flags it as a false-positive infinite loop), but this turned out
to be a non-issue: Cloudflare Pages' own default fallback already serves `index.html` for
any unmatched path, so the explicit rule was redundant. Verified live: direct navigation to
`/about`, a dynamic route (`/product/3262`), and a genuinely invalid path all return HTTP 200
with the correct content (including React Router's own 404 page for the invalid one). Removed
`frontend/public/_redirects` entirely to stop the recurring deploy warning.

View file

@ -1 +0,0 @@
/* /index.html 200