Repository navigation
Description
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=…→301tohttps://atlasreact.sydevelopers.com/?key=…&locale=…. The
path is dropped, the query is preserved. The response carries Heroku'snelandreport-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→307tohttps://syatlas.pages.dev/embed.js. Path preserved. This is the URL
wemeditate.com/maploads./→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, andmapstaying out
ofRESERVED_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
_redirectsrule 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-…onsahajayoga.nl,dc94e9a2-…on
sahajayoga.at. They were imported asclients.clientId, the public identifier
(sydevs/SahajCloudseeds/atlas/extract.ts:329-341, field atsrc/collections/Clients/Clients.ts:579).
They are not API keys:apiKeyis Payload-generated and manager-only
(src/collections/Clients/Clients.ts:287). src/main.tsx:23-24prefers?key=over the built-in key. So a query-preserving forward
authenticates with aclientIdand shows the configuration-error screen
(docs/embedding.md:137).- With
keydropped, the frame boots onsahajatlas.com's ownVITE_SAHAJCLOUD_API_KEY
(docs/environment.md:29) and renders.localesurvives 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 issahajatlas.com, which must be in that client'sallowedDomains. - 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.devbreaks that page immediately — it is where the/embed.js307
lands. - Repointing
atlas.sydevelopers.com/embed.jsatsahajatlas.com/embed.jsalso breaks it: the
new loader definessahaj-atlas, notsyatlas-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)
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 onatlas.sydevelopers.com/mapis
forwarded withkeydropped, so an owner who wants their own region and usage needs a newly
issued key. Replace thesahajatlas.pages.devwording with what is measured above.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.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.- 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)
- 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). - Issue one API key per framed site in SahajCloud, and add
sahajatlas.comto the
allowedDomainsof any client that keeps framing. - Author the forward at the legacy zone as a Cloudflare Redirect Rule — drop the path, drop
key, keeplocale. It must not live in the legacy application, which is being switched off. - Hold
atlasreact.sydevelopers.comandsyatlas.pages.devuntil Switch wemeditate.com over to the new site WeMeditateWeb#160
ships, then forward them the same way. - Record each address's owner until the end date, then release it (Sahaj Atlas is ready for launch #255's decisions; a released
pages.devname is claimable by anyone).
Interfaces
- Consumes from
sydevs/WeMeditateWeb:wemeditate.com/mapserving the new embed, so the
legacy/embed.jsforward can move (Switch wemeditate.com over to the new site WeMeditateWeb#160). - Consumes from
sydevs/SahajCloud: one issued API key per framed site, andsahajatlas.comin
theallowedDomainsof 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=nlforwards tosahajatlas.comwith nokeyin
the final URL, and the body is the atlas root — asserted on the body, never the status
(the SPA fallback answers 200text/htmlfor 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.comhas that origin in itsallowedDomains, with an API call from it accepted. -
docs/embedding.mdnames one origin, lists the three retired hosts with the end date, and
describessahajatlas.pages.devas measured rather than as withdrawn-and-unreachable. -
CHANGELOG.mdrecords the retirement as breaking, with the replacement URL and the end date. -
wrangler.jsoncandscripts/wrangler-config.test.tsno longer promise a/map / 301rule
from this ticket, and thehas no public/_redirectstest 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 buildpass.
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 besahajatlas.com, carrylocale, and carry nokey. -
curl -sSL 'https://atlas.sydevelopers.com/embed.js' | grep -c syatlas-mapreturns0, and
grep -c sahaj-atlason 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 forhttps://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 newCHANGELOG.mdand
docs/embedding.mdentries. -
grep -n 'sydevelopers.com' docs/embedding.mdshows the three retired hosts and
cloud.sydevelopers.com, and no other origin. -
PREVIEW_URL=https://sahajatlas.com pnpm test:smokepasses.
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.
allowedDomainsis the host allowlist,embedMetadata
is written only byPOST /api/clients/report, andcanonical.embedis a choice among reported
mounts. There is no stored loader URL to update.
References
- Sahaj Atlas is ready for launch #255 — the launch goal, and the decisions this ticket executes
- Switch wemeditate.com over to the new site WeMeditateWeb#160 — the blocker:
wemeditate.comon the new embed - chore(build): cut sahajatlas.com over to Workers and delete Pages — repo-side phase #336 / chore(build): cut sahajatlas.com over to Workers and delete Pages #283 — the Workers cutover that deleted
public/_redirectsand thesahajatlasPages project - chore(build): stop the sahajatlas.com zone overriding the loader's Cache-Control #148 — Part 1, the loader's
Cache-Controlonsahajatlas.com(closed) - chore(ci): nothing automated observes the production deploy, only a preview #244 / PR ci(smoke): read the production domain, not only a preview #248 — the lane that reads the production deploy
- feat(widget): split the embed into a smart loader and an element bundle #149 — the loader split, which named
auto.jsandembed.js
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
sydevs-bot commentedon Oct 5, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
sydevs-bot commentedon Oct 5, 2026
Revised from the code. Three of the five steps did not survive it.
lib/atlas-embed.ts:12pinshttps://sahajatlas.com. Only two third-party iframes remain on the legacy hosts, and we cannot edit their markup.allowedDomains, and only for those two iframes — theirOriginbecomessahajatlas.comthe moment you redirect, so add it first./mapis not a route here.mapis absent fromRESERVED_SLUGS, so a path-preserving redirect opens a drawer for a region that does not exist. Added apublic/_redirectsstep.docs/embedding.mdnames 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 implementstarts the Phase 1 half.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
sydevs-bot commentedon Oct 6, 2026
@Ardnived unblocked: every blocker is closed. Say
@sydevs-bot implementto start.🤖 sydevs dispatcher
1 remaining item
fix(deploy): hold the `_redirects` guard narrowing in a spec
Ardnived commentedon Oct 28, 2026
@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.
sydevs-bot commentedon Oct 28, 2026
Rewritten against #255's decisions and the post-#336 Workers deploy. Three corrections changed the plan.
/maploadsatlas.sydevelopers.com/embed.jsand 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._redirectsstep is withdrawn./mapalready 301s to a root with the path dropped, and Cloudflare carries the incoming query onto any target — so only the forwarding zone can dropkey. Phase 1 is documentation only. Two guard comments promising a/map / 301rule need correcting instead.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.devanswers with bytes identical tosahajatlas.com, whichdocs/embedding.mdsays cannot happen.@sydevs-bot implementstarts Phase 1.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Nov 17, 2026
This has been completed
fix(ci): stop promising #252 returns _redirects