fix(frontend): serve real robots and sitemap files #1372
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic!1372
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-1212-crawl-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/robots.txtand/sitemap.xmlcurrently return the SPA HTML shell on dex.cl8y.com. This change ships real crawl files, serves the required media types, and returns 404 when those files are missing. Crawl-file backups/trailing slashes and/sitemap_index.xmlalso return 404.The sitemap stays empty and the shared HTML shell gets
X-Robots-Tag: noindex, nofollow. Robots allows crawlers to fetch that header with an emptyDisallow:directive and pins its sitemap to the DEX origin. Existing OG metadata, PNG serving, browser routes, and hashed-asset caching remain intact.Adds a modular source/HTTP verifier, CRAWL-1–CRAWL-6 invariants, agent instructions, and a crosslinked QA checklist. Also corrects the adjacent #578 cache assertion and lets #706 preserve a dedicated Playwright port so parallel worktrees do not accidentally test Grafana on port 3000.
Refs #1212. Production acceptance remains pending the frontend deployment; this PR does not claim a deployed fix.
Validation
make verify-issue-578: passed, 9 unit tests.PLAYWRIGHT_WEB_PORT=5189 PLAYWRIGHT_HTML_OPEN=never make verify-issue-706: passed, 53 unit tests, nginx smoke, live cache checks, and 3 browser tests. Initial browser timeouts from the port-3000 service collision were resolved and retested.200 text/html; the strict live checker correctly rejected it. This branch has not been deployed.Acceptance and agent verification checklist
VERIFY1212_REQUIRE_NGINX=1 make verify-issue-1212checks robots/plain text and sitemap/XML with body validation.VERIFY1212_DIST_DIR=/absolute/path/to/frontend-dapp/dist VERIFY1212_REQUIRE_NGINX=1 make verify-issue-1212verifies actual copied build artifacts.VERIFY1212_LIVE_URL=https://dex.cl8y.com make verify-issue-1212; record status, media type, body, and timestamp. The currently deployed old shell fails this check.For review, use QA checklist and agent playbook. Choose an unused Playwright port. Agents may skip checklist items they cannot complete, record the concrete reason, leave those criteria unchecked, and mark the completed verification scope PASS with skips. Skips do not establish live acceptance; observed failures remain FAIL until corrected and retested. The relevant follow-up is the normal frontend deployment and live HTTP recheck.