Skip to content

Let the official embed script work without runtime URL attributes - #104

Merged
engmsaleh merged 1 commit into
mainfrom
fix/web-embed-defaults
Oct 12, 2026
Merged

engmsaleh merged 1 commit into
mainfrom
fix/web-embed-defaults

Conversation

@engmsaleh

Copy link
Copy Markdown
Collaborator

The web widget only connects to Studio when the script tag carries data-skilly-backend-url (+ data-skilly-core-url for the WASM core). Studio's onboarding install snippet omits them, so widgets installed from it stayed in simulated mode, and every other snippet needed two noisy lines.

  • resolveEmbedRuntimeUrls: when the script is served from cdn.tryskilly.app, default backendUrl to https://studio.tryskilly.app and coreUrl to /web/v1.0.0/skilly_core_web_sdk.js on the same CDN. Explicit attributes still win; self-hosted/local copies (demo, tests) are unchanged.
  • Existing installs keep working: they pass the same URLs explicitly.

Merging deploys /web/v1.js via the Deploy Web CDN workflow (5-minute cache). A follow-up drops the two lines from Studio's snippets once this is live.

Verified: sdk/web bun test 26/26 (3 new), tsc --noEmit, tsup build.

🤖 Generated with Claude Code

The widget only went live when the script tag also carried
data-skilly-backend-url and data-skilly-core-url, so Studio's
onboarding install snippet (which omits them) produced a widget stuck
in simulated mode, and every other snippet needed two noisy lines.
When the script is served from cdn.tryskilly.app, default to Studio's
backend and the CDN core; explicit attributes still win, and
self-hosted or local copies keep today's behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
skilly-studio Ready Ready Preview Oct 12, 2026 2:22am UTC

Request Review

@engmsaleh
engmsaleh merged commit 0878540 into main Oct 12, 2026
1 of 2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 89d7efe7 Deployed Oct 12, 2026 by vercel[bot]
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