Skip to content

docs(osa): load the widget from demo.osc.earth, not osa-demo.pages.dev - #44

Merged
neuromechanist merged 2 commits into
mainfrom
docs/drop-osa-demo-pages-dev
Oct 27, 2026
Merged

neuromechanist merged 2 commits into
mainfrom
docs/drop-osa-demo-pages-dev

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

osa-demo.pages.dev is the Cloudflare Pages project's own address. It belongs to the account that hosts the project, so it stops working when OSA moves to the SCCN Cloudflare account. The docs said it "is not going away".

Changes

  • deployment/widget.md
    • The note on existing embeds is now a warning: switch to https://demo.osc.earth/osa-chat-widget.js, which serves the same file.
    • The environment-detection table lists only demo.osc.earth and *-demo.osc.earth.
    • The always-authorized origins are the demo's own (demo.osc.earth, <branch>-demo.osc.earth); Drop dead osa-demo.pages.dev origin allowlist entries osa#626 removed osa-demo.pages.dev from the allowlists.
    • The demo page section no longer mentions the pages.dev address.
  • registry/schema-reference.md, troubleshooting.md: the cors_origins examples no longer suggest https://*.pages.dev or https://*.vercel.app, which would authorize every site on those platforms. They use a project-scoped wildcard, and the common-mistakes list and tip say why.
  • README.md: the docs deploy to the osc-docs Pages project, served at docs.osc.earth.

Tested

mkdocs build succeeds, with no warnings on these pages. --strict stops only on an existing warning in the OSCAR submodule (oscar/examples/index.md links ../docs/evidence.md).

Review

One Sonnet pass, checking each claim against OSA's develop.

  • The two widget addresses serve the same bytes today: same sha256, 419,965 bytes each.
  • The authorized-origins sentence matches _is_authorized_origin.
  • No other page under docs/osa/ points embedders to pages.dev or workers.dev.
  • Fixed: the trimmed environment table now notes that the widget still recognizes the legacy pages.dev names, which the demo redirects before the widget loads.

osa-demo.pages.dev is the Pages project's account-scoped address and
stops working when OSA moves Cloudflare accounts; the widget page now
says so and points embeds at demo.osc.earth. The environment table and
the always-authorized origins drop the pages.dev names (OSA #626 removed
them from the allowlists). The cors_origins examples no longer suggest
https://*.pages.dev, which would authorize every Pages site. The README
names docs.osc.earth instead of the docs project's pages.dev address.
mkdocs build passes with no warnings on these pages.
… names

Review follow-up: the trimmed environment table read as if those hosts
fell through to the default; the widget maps them as before, and the demo
redirects them to the custom domains first.
@neuromechanist
neuromechanist merged commit f538087 into main Oct 27, 2026
@neuromechanist
neuromechanist deleted the docs/drop-osa-demo-pages-dev branch October 27, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant