Skip to content

chore(config): point SDK_URL at /sdk/hosted-fields/latest/index.js - #16

Merged
evsinev merged 2 commits into
mainfrom
hosted-fields-sdk-path-170190
Sep 12, 2026
Merged

evsinev merged 2 commits into
mainfrom
hosted-fields-sdk-path-170190

Conversation

@evsinev

@evsinev evsinev commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Part of #170190 — the Hosted Fields browser artifacts move to a /sdk/ prefix with an immutable directory per release.

Two config-only commits, 23 committed templates each: the root .env.example, every stack's .env.example and deploy/*.env.example, and the commented env[SDK_URL] in the PHP pool config.

  1. New path. SDK_URL goes from /assets/libs/hosted-fields/latest/index.js to /sdk/hosted-fields/latest/index.js.
  2. Retired query dropped. The ?segment=paynet tail is gone. The segment query was removed from the script URL a while back — the field now takes the deployment context path from the cp claim of the ephemeralTicket (see the SDK's Deployment contract), so the sample was showing a parameter nothing reads.

latest stays the value the examples ship with — they are demos, and a version-pinned URL would need bumping on every release. Production integrations should pin the version; that recommendation belongs in the integration guide.

No code change: every example already reads the URL from the environment, none hardcodes it in markup, and each app builds its CSP from the origin of SDK_URL, so a path-only move needs no CSP edit. The e2e emulator serves its own /sdk.js and is unaffected.

@evsinev
evsinev merged commit 92203c9 into main Sep 12, 2026
24 checks passed
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