From 5a806eea87ee76c8a903c912a1c70b4f2714f487 Mon Sep 17 00:00:00 2001 From: Shekhar Vaidya Date: Tue, 21 Jul 2026 10:19:50 +0530 Subject: [PATCH] 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 --- CLAUDE.md | 10 +++++++--- frontend/public/_redirects | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 frontend/public/_redirects diff --git a/CLAUDE.md b/CLAUDE.md index 49d9a7c..b876e3c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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. diff --git a/frontend/public/_redirects b/frontend/public/_redirects deleted file mode 100644 index 7797f7c..0000000 --- a/frontend/public/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /index.html 200