Repository navigation
Description
Summary
Product direction (confirmed):
Search is owned by WeMeditate and other embedded sites. sahajatlas.com should resist direct indexing.
The standalone build is a real SEO surface today: proper schema.org/Event JSON-LD, canonical + OG tags per event (src/components/molecules/EventMetadata/EventMetadata.tsx:87-100), rendered only in the standalone build (src/views/EventView/EventView.tsx:77 — {standalone && <EventMetadata event={event} />}; region/country views emit their own). The canonicals already point at SahajCloud's webUrl — the WeMeditate surface — so standalone is deliberately a pointer to the canonical surface, not the surface itself. But nothing prevents indexing: no robots.txt, no noindex, no X-Robots-Tag (.claude/reports/RELEASE_READINESS.md §6, Appendix D — "No robots.txt / sitemap.xml"; public/ today holds only _redirects, favicons, graphics, locales, logo.svg, social). Since search is owned by the embedding sites, the standalone deployment should actively resist direct indexing — while keeping share unfurls working.
Proposed changes
public/robots.txt(new) withUser-agent: */Disallow: /.- A crawlable
noindexsignal:<meta name="robots" content="noindex">in the standalone Helmet head (gated onstandalone, like all existing SEO output) and/or anX-Robots-Tag: noindexresponse header via a Cloudflare Pagespublic/_headersfile — the implementer picks the reliable combination. Note the interaction: a robots.txtDisallowhides the page-level noindex from crawlers, so a URL blocked by robots.txt can still be indexed (URL-only) from external links. Either serve the noindex where crawlers can fetch it, or accept and document the residual risk.public/_redirectsis the existing precedent for repo-controlled Pages config read fromdist/. - KEEP the JSON-LD / OG output — link unfurls in shares must keep working.
noindexdoes not break OG previews (share scrapers fetch the page directly and don't apply robots indexing directives to preview rendering) — verify against the deployed preview and state it in the implementation report. - KEEP canonicals pointing at
webUrl(the WeMeditate surface). - Decide and state whether
sahajatlas-design.pages.dev(the Ladle playground, its own Cloudflare Pages project) needs the same treatment. - The embed path must be untouched: the widget must never inject robots meta into a host page's
<head>(keep everything behind thestandalonegate —src/config/mode.ts:4-6).
Acceptance criteria
-
public/robots.txtwithDisallow: /ships indist/(verified in a production build output). - The standalone build serves a
noindexsignal a crawler can actually see (meta robots in the standalone head and/orX-Robots-Tagviapublic/_headers); the chosen combination and its robots.txt interaction are documented in the implementation report. - The embedded widget emits no robots meta into the host page (gate on
standaloneverified). - JSON-LD, OG tags and canonicals (→
webUrl) are unchanged; a share-link unfurl still renders title/description/image (checked against the Cloudflare preview or a scraper debugger), and the "noindex doesn't break OG previews" claim is verified and stated. - A decision on
sahajatlas-design.pages.devis stated in the issue/PR (and implemented if "yes"). - Lint + typecheck +
pnpm test:run+pnpm buildpass. - Write an implementation report to
.claude/reports/<issue-number>-<short-slug>.md— in the MAIN checkout at /Users/devindra/Documents/Projects/SahajAtlasWeb even when implementing from a worktree (the folder is gitignored) — covering what changed, what was deliberately NOT changed, and which readiness-report findings are resolved.
Files affected
public/robots.txt(new)public/_headers(new, if the header route is chosen)- The standalone Helmet head block (
src/App.tsxstandalone region orsrc/components/molecules/EventMetadata/EventMetadata.tsx) — keep it surgical; sibling tickets own other regions ofApp.tsx
Parallel implementation: this ticket OWNS the files listed above; sibling release-hardening tickets run concurrently — avoid edits outside owned files except strictly additive ones.
References
.claude/reports/RELEASE_READINESS.md§6 (SEO), Appendix Dpublic/_redirects— precedent for repo-controlled Cloudflare Pages configsrc/config/mode.ts:4-6(standalone vs embed semantics — hash URLs are not canonical)- docs(widget): publish an accurate integrator guide #93 (integrator guide — the docs surface if the map/robots decision needs host-facing wording)
Metadata
Metadata
Assignees
Labels
Type
Fields
Hold Until
Activity