Skip to content

fix(sdk-core): drop hardcoded staging IP fallback - #22

Merged
acamarata merged 2 commits into
mainfrom
fix/sdk-core-drop-staging-ip
Sep 12, 2026
Merged

acamarata merged 2 commits into
mainfrom
fix/sdk-core-drop-staging-ip

Conversation

@acamarata

Copy link
Copy Markdown
Contributor

Summary

  • nself-staging (167.235.233.65) is being permanently destroyed by owner decision (2026-09-12). @nself/sdk-core's STAGING_API_URL constant and resolveStagingUrl() silently fell back to that raw IP over plain HTTP when no env override was set.
  • Removed the hardcoded fallback. STAGING_API_URL is now undefined by default; resolveStagingUrl() also checks NSELF_STAGING_URL (Node) in addition to the existing VITE_NSELF_STAGING_URL (Vite), and returns undefined when neither is set.
  • Updated the one test asserting the old hardcoded value.

Scope note

  • No version bump / npm publish included — not authorized as part of this cleanup, and separately: @nself/sdk-core does not appear to actually be published (npm view @nself/sdk-core returns 404 against the public registry, and no workflow in this repo publishes it). Flagging in case that's unexpected — if it's meant to be live, that's a separate gap.
  • No other callers of resolveStagingUrl/STAGING_API_URL exist in this repo besides the index.ts re-export.

Test plan

  • vitest run in @nself/sdk-core — 28/28 pass

nself-staging (167.235.233.65) was permanently destroyed 2026-09-12 by
owner decision. STAGING_API_URL / resolveStagingUrl() silently fell back
to that dead host's raw IP over HTTP -- now resolves to undefined unless
an explicit VITE_NSELF_STAGING_URL / NSELF_STAGING_URL is set. No version
bump or npm publish included; the package is not currently published
(registry.npmjs.org returns 404 for @nself/sdk-core).
@acamarata
acamarata merged commit bf33eda into main Sep 12, 2026
5 checks passed
@acamarata
acamarata deleted the fix/sdk-core-drop-staging-ip branch September 12, 2026 14:43
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