Skip to content

chore(build): cut every client over to sahajatlas.com and retire the legacy hosts #252

Closed

Description

@sydevs-bot

Summary

Retire atlas.sydevelopers.com, atlasreact.sydevelopers.com and syatlas.pages.dev, so
sahajatlas.com is the only origin serving the atlas. Each retired address forwards to the new
atlas until an announced end date, is owned by a named person until then, and is released after
(#255's decisions, 2026-10-21).

Three sites still load the legacy build, not two. wemeditate.com/map loads
https://atlas.sydevelopers.com/embed.js in production and renders <syatlas-map>; the other two
are third-party iframes we cannot edit. Repo-side work here is documentation only — the forward
itself, the keys and the releases are DNS, Cloudflare and SahajCloud admin.

Goal context

Part of #255: this is the old-addresses half of the launch — the three legacy
addresses stop serving the old map, forward to the new one until the announced end date, and are
then released.

The estate, measured 2026-10-28

Host GET /embed.js Bytes sha256 (first 16) Element Build
sahajatlas.com 200 7961 9ead977846032493 sahaj-atlas new
sahajatlas.pages.dev 200 7961 9ead977846032493 sahaj-atlas new (see below)
atlas.sydevelopers.com 307 → syatlas.pages.dev/embed.js 3091 6cde2c9bfa002582 syatlas-map legacy
atlasreact.sydevelopers.com 200 3091 6cde2c9bfa002582 syatlas-map legacy
syatlas.pages.dev 200 3091 6cde2c9bfa002582 syatlas-map legacy

The element name is the discriminator: it is the one string that cannot be true of both builds.

What the legacy host does today

Three different behaviours on one hostname, measured 2026-10-28:

  • /map?key=…&locale=… → 301 to https://atlasreact.sydevelopers.com/?key=…&locale=…. The
    path is dropped, the query is preserved. The response carries Heroku's nel and report-to
    headers, so this redirect is the legacy application's own, not a Cloudflare rule — it dies with
    that server
    , which Sahaj Atlas is ready for launch #255 switches off.
  • /embed.js → 307 to https://syatlas.pages.dev/embed.js. Path preserved. This is the URL
    wemeditate.com/map loads.
  • / → 200, the legacy editing site.

/map needs no rule in this repo

The previous plan's first step — bring public/_redirects back with /map / 301 — is withdrawn:

  • The forward already drops /map, so the new build never sees that path, and map staying out
    of RESERVED_SLUGS (src/lib/shape/path.ts:239-251) costs nothing.
  • chore(build): cut sahajatlas.com over to Workers and delete Pages — repo-side phase #336 deleted public/_redirects; the Worker takes the SPA fallback from
    assets.not_found_handling (wrangler.jsonc:32-35).
  • A _redirects rule could not do the job anyway. Cloudflare carries the incoming query onto
    the target, and the query is the actual problem (below). Only the forwarding zone can drop it.

Two guard comments still promise this ticket will bring the file back, and must be corrected rather
than deleted — keep the ⚠ and the #NNN breadcrumbs: wrangler.jsonc:26-31 and
scripts/wrangler-config.test.ts:142-148. The has no public/_redirects test itself stays.

The forward must drop key

  • The legacy ?key= values are UUIDs: f655b7d2-… on sahajayoga.nl, dc94e9a2-… on
    sahajayoga.at. They were imported as clients.clientId, the public identifier
    (sydevs/SahajCloud seeds/atlas/extract.ts:329-341, field at src/collections/Clients/Clients.ts:579).
    They are not API keys: apiKey is Payload-generated and manager-only
    (src/collections/Clients/Clients.ts:287).
  • src/main.tsx:23-24 prefers ?key= over the built-in key. So a query-preserving forward
    authenticates with a clientId and shows the configuration-error screen
    (docs/embedding.md:137).
  • With key dropped, the frame boots on sahajatlas.com's own VITE_SAHAJCLOUD_API_KEY
    (docs/environment.md:29) and renders. locale survives the forward and still applies.
  • The cost of the stopgap: no per-site home region. Authenticated as our generic client, the
    frame opens the world list rather than the Netherlands or Austria. That is why each framed site
    needs a key of its own, issued to its owner, before the embed looks right again.

Rejected: special-casing a UUID-shaped key in src/main.tsx. It would make the documented key
parameter lie, for two URLs we control the forward of.

allowedDomains, narrowed

allowedDomains (src/collections/Clients/Clients.ts:324) is enforced against the request's
Origin, falling back to Referer (src/plugins/usage/hooks.ts:396, gate at :444). It matters
only after an owner embeds with their own newly issued key:

  • Owner keeps framing https://sahajatlas.com/?key=<new key>&locale=nl → the frame document's
    origin is sahajatlas.com, which must be in that client's allowedDomains.
  • Owner switches to the script embed on their own page → the origin is their own domain, already
    allowed.

The stopgap itself needs no change: with key dropped it authenticates as the generic client, which
already serves sahajatlas.com keyless.

wemeditate.com is the third consumer, and it blocks the retirement

Measured 2026-10-28: wemeditate.com/map serves <script src="https://atlas.sydevelopers.com/embed.js">
and markup declaring <syatlas-map>. Two consequences:

  • Retiring syatlas.pages.dev breaks that page immediately — it is where the /embed.js 307
    lands.
  • Repointing atlas.sydevelopers.com/embed.js at sahajatlas.com/embed.js also breaks it: the
    new loader defines sahaj-atlas, not syatlas-map, so the page gets a blank box.

Both wait on sydevs/WeMeditateWeb#160, which is this ticket's blocker. .env:38-39 already records
the same fact for the compact card's escape hatch; its breadcrumb says "#148 Part 2" and should name
this ticket instead.

sahajatlas.pages.dev still answers, and the guide says it does not

https://sahajatlas.pages.dev/embed.js returns 200 with bytes identical to
sahajatlas.com/embed.js — same length, same sha256, same ETag: "371d4de4e6184ebc93c1bed2ee26cc1f",
same hashed chunk names. docs/embedding.md:972-976 says no request to it reaches what serves the
domain, and CHANGELOG.md calls what it answers a frozen copy. Neither matches the measurement.
Nothing in CI deploys to Pages — .github/workflows/ci.yml uploads a Worker version only. Recorded,
not explained; the guide's wording is part of the docs edit below.

Approach

Phase 1 — documentation (this repo, landable before the gate lifts)

  1. docs/embedding.md §"Where to load it from" (:960-976). Name all three retired hosts, the
    replacement URL and the announced end date. Say that a frame on atlas.sydevelopers.com/map is
    forwarded with key dropped, so an owner who wants their own region and usage needs a newly
    issued key. Replace the sahajatlas.pages.dev wording with what is measured above.
  2. docs/embedding.md §"Migrating from the old element" (:1216). The legacy hosts serve
    <syatlas-map>, a name this repo mentions nowhere today. Say that a page still declaring it gets
    a blank box after the repoint, and what to replace it with.
  3. CHANGELOG.md, Unreleased → Removed, ⚠ BREAKING: the three retired origins, the replacement
    URL, and the end date. This is the one file an embedding site reads.
  4. Correct the two stale guard comments named above, and re-point .env:38-39's breadcrumb.

Phase 2 — the estate (letters, keys, DNS, Cloudflare — not this repo)

  1. Write to the three site owners first, with the end date and the key issued for them (Sahaj Atlas is ready for launch #255's
    decision: a dated end, with a letter to each owner first; the date is set by when replies can come
    back).
  2. Issue one API key per framed site in SahajCloud, and add sahajatlas.com to the
    allowedDomains of any client that keeps framing.
  3. Author the forward at the legacy zone as a Cloudflare Redirect Rule — drop the path, drop
    key, keep locale. It must not live in the legacy application, which is being switched off.
  4. Hold atlasreact.sydevelopers.com and syatlas.pages.dev until Switch wemeditate.com over to the new site WeMeditateWeb#160
    ships
    , then forward them the same way.
  5. Record each address's owner until the end date, then release it (Sahaj Atlas is ready for launch #255's decisions; a released
    pages.dev name is claimable by anyone).

Interfaces

  • Consumes from sydevs/WeMeditateWeb: wemeditate.com/map serving the new embed, so the
    legacy /embed.js forward can move (Switch wemeditate.com over to the new site WeMeditateWeb#160).
  • Consumes from sydevs/SahajCloud: one issued API key per framed site, and sahajatlas.com in
    the allowedDomains of any client that keeps framing. No schema change — the field exists.
  • Provides to the two third-party sites: a forwarded URL that renders, and a key of their own.

Acceptance criteria

  • atlas.sydevelopers.com/map?key=…&locale=nl forwards to sahajatlas.com with no key in
    the final URL
    , and the body is the atlas root — asserted on the body, never the status
    (the SPA fallback answers 200 text/html for any path).
  • No reachable host serves a build defining syatlas-map.
  • Each framed site's owner holds an API key issued for them, and every client that keeps framing
    sahajatlas.com has that origin in its allowedDomains, with an API call from it accepted.
  • docs/embedding.md names one origin, lists the three retired hosts with the end date, and
    describes sahajatlas.pages.dev as measured rather than as withdrawn-and-unreachable.
  • CHANGELOG.md records the retirement as breaking, with the replacement URL and the end date.
  • wrangler.jsonc and scripts/wrangler-config.test.ts no longer promise a /map / 301 rule
    from this ticket, and the has no public/_redirects test still passes.
  • Each retired address's owner-of-record and the end date are written down on Sahaj Atlas is ready for launch #255.
  • pnpm lint && pnpm typecheck && pnpm test:run && pnpm build pass.

Verification checklist

  • Re-measure the estate — the table above is 2026-10-28:
    for h in sahajatlas.com sahajatlas.pages.dev atlas.sydevelopers.com atlasreact.sydevelopers.com syatlas.pages.dev; do echo "== $h"; curl -sSL -m 20 "https://$h/embed.js" -o /tmp/e.js -w '%{http_code} %{url_effective} %{size_download}\n'; grep -c syatlas-map /tmp/e.js; done
  • Trace the forward, and read the Location:
    curl -sS -D - -o /dev/null 'https://atlas.sydevelopers.com/map?key=abc&locale=nl' | grep -i '^HTTP\|^location' — the target must be sahajatlas.com, carry locale, and carry no key.
  • curl -sSL 'https://atlas.sydevelopers.com/embed.js' | grep -c syatlas-map returns 0, and
    grep -c sahaj-atlas on the same body returns non-zero.
  • curl -sSL https://wemeditate.com/map | grep -o 'atlas\.sydevelopers\.com\|sahajatlas\.com\|syatlas-map\|sahaj-atlas' | sort | uniq -c
    shows the new host and element, and neither legacy name.
  • curl -sSL https://sahajayoga.nl/locatelessons/ | grep -o '<iframe[^>]*src="[^"]*"' and the
    same for https://sahajayoga.at/meditations-kurse-finden/ — record what each frames, before
    and after.
  • In a browser, the forwarded frame URL shows the atlas, not an error screen and not an empty
    region drawer. This is the one item no fetch can settle.
  • grep -rn 'syatlas-map' . in this repo returns only the new CHANGELOG.md and
    docs/embedding.md entries.
  • grep -n 'sydevelopers.com' docs/embedding.md shows the three retired hosts and
    cloud.sydevelopers.com, and no other origin.
  • PREVIEW_URL=https://sahajatlas.com pnpm test:smoke passes.

Notes

atlas.sydevelopers.com/embed.js and declares <syatlas-map>, so repointing or retiring the legacy
hosts blanks that page until the new embed is in production.

#148, the loader's Cache-Control on sahajatlas.com, closed 2026-10-06 and no longer gates this.

Nothing automated reads the legacy hosts. PR #248 takes its origin from the deployment event
(github.event.deployment_status.environment_url), so it reads the deploy that just shipped and
cannot reach a third-party hostname. Every criterion above naming a legacy host is a manual curl
unless a spec is added for it.

⚠ .claude/reports/whitelabel-seo-program.md does not exist in this repo on main. It was cited
here and in #148 as the source of the 2026-08-14 estate measurement. That table is superseded by the
2026-10-28 one above.

Non-defects, recorded so they are not "fixed" later

  • CORS survives the forward. The legacy redirects carry access-control-allow-origin: *, so a
    type="module" script — fetched in CORS mode — passes the whole chain. Staleness, not CORS.
  • The legacy hosts serving an old build is intended, for as long as three sites still declare
    <syatlas-map>.
  • VITE_WEMEDITATE_MAP_URL="https://wemeditate.com/map" (.env:40) is correct as it stands, and
    so is its NOTE: that page still serves the legacy build, so an appended ?atlas= is dropped. What
    changes it is Switch wemeditate.com over to the new site WeMeditateWeb#160, not this ticket.
  • No client record stores an embed URL. allowedDomains is the host allowlist, embedMetadata
    is written only by POST /api/clients/report, and canonical.embed is a choice among reported
    mounts. There is no stored loader URL to update.

References

Activity

  1. added theissue type on Oct 5, 2026
  2. added
    proposal
    bot:working
    and removed on Oct 5, 2026
  3. sydevs-bot commented on Oct 5, 2026

    @sydevs-bot
    ContributorAuthor

    🤖 no session running

    recent dispatches
    • 16:03Z revise · attempt 1 · session · done
    • 16:03Z revise · attempt 1 · session
    • 23:35Z revise · attempt 1 · session · done
    • 23:35Z revise · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  4. sydevs-bot commented on Oct 5, 2026

    @sydevs-bot
    ContributorAuthor

    Revised from the code. Three of the five steps did not survive it.

    • WeMeditateWeb already cut over. lib/atlas-embed.ts:12 pins https://sahajatlas.com. Only two third-party iframes remain on the legacy hosts, and we cannot edit their markup.
    • No client record stores an embed URL. The field this cutover touches is allowedDomains, and only for those two iframes — their Origin becomes sahajatlas.com the moment you redirect, so add it first.
    • /map is not a route here. map is absent from RESERVED_SLUGS, so a path-preserving redirect opens a drawer for a region that does not exist. Added a public/_redirects step.
    • docs/embedding.md names no legacy host, so step 4 adds them rather than correcting them.

    Added Blocked by: #148 — cutting the estate onto a 4-hour-cached loader with no fallback left is that ticket's failure mode at scale. Drop the line if you disagree.

    Effort Moderate, Priority Medium. Most of the work is dashboard and DNS, not this repo.

    @sydevs-bot implement starts the Phase 1 half.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  5. added and removed
    bot:working
    on Oct 5, 2026
  6. sydevs-bot commented on Oct 6, 2026

    @sydevs-bot
    ContributorAuthor

    @Ardnived unblocked: every blocker is closed. Say @sydevs-bot implement to start.

    🤖 sydevs dispatcher

  7. 1 remaining item

  8. Ardnived commented on Oct 28, 2026

    @Ardnived
    Contributor

    @sydevs-bot revise Rewrite against #255's 2026-10-21 decisions and the post-#336 Workers deploy. Q1: yes, sahajayoga.nl and sahajayoga.at still frame atlas.sydevelopers.com/map?key=… (re-measured 2026-10-27). Q2: moot, because Pages is gone and atlas.sydevelopers.com/map already 301s to atlasreact's root with the query, dropping /map. Q3: a dated end, with a letter to each owner first. Q4: write down each address's owner until the end date, then release it (#255 accepts that a released name is claimable). Q5: the client roster from #255's first success line. Also correct the plan: the legacy ?key= values were imported as clientId, not as API keys (SahajCloud seeds/atlas/extract.ts:340), and src/main.tsx:24 prefers ?key= over the built-in key, so a query-preserving forward shows an error screen. The forward must drop key, and each framed site needs a newly issued key from its owner. WeMeditateWeb is not cut over in production; that waits on sydevs/WeMeditateWeb#160.

  9. added
    bot:working
    and removed
    proposal
    on Oct 28, 2026
  10. moved this from Awaiting to Working in SYDevelopers Technical Roadmapon Oct 28, 2026
  11. sydevs-bot commented on Oct 28, 2026

    @sydevs-bot
    ContributorAuthor

    Rewritten against #255's decisions and the post-#336 Workers deploy. Three corrections changed the plan.

    • wemeditate.com is a third legacy consumer. Its /map loads atlas.sydevelopers.com/embed.js and declares <syatlas-map>, measured today. Repointing or retiring the legacy hosts blanks it, so this is now Blocked by Switch wemeditate.com over to the new site WeMeditateWeb#160.
    • The _redirects step is withdrawn. /map already 301s to a root with the path dropped, and Cloudflare carries the incoming query onto any target — so only the forwarding zone can drop key. Phase 1 is documentation only. Two guard comments promising a /map / 301 rule need correcting instead.
    • The forward must drop key. Dropping it renders, but as our generic client — so the frame opens the world list until each owner holds a key of their own.

    Q1–Q5 are folded into the body. No open questions remain.

    One anomaly: sahajatlas.pages.dev answers with bytes identical to sahajatlas.com, which docs/embedding.md says cannot happen.

    @sydevs-bot implement starts Phase 1.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  12. removed
    bot:working
    on Oct 28, 2026
  13. moved this from Working to Blocked in SYDevelopers Technical Roadmapon Oct 28, 2026
  14. Ardnived commented on Nov 17, 2026

    @Ardnived
    Contributor

    This has been completed

  15. added a commit that references this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    Medium

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions