Skip to content

chore(config): default to chat.ethora.com hosts after prod migration#67

Open
phwizard wants to merge 1 commit intomainfrom
chore/default-hosts-chat-ethora-com
Open

chore(config): default to chat.ethora.com hosts after prod migration#67
phwizard wants to merge 1 commit intomainfrom
chore/default-hosts-chat-ethora-com

Conversation

@phwizard
Copy link
Copy Markdown
Contributor

Summary

Production has migrated from *.ethoradev.com to *.chat.ethora.com. This PR is a small, focused update to the package's built-in default hosts so that any consumer of @ethora/chat-component who does not override baseUrl / xmppSettings automatically targets the new prod cluster instead of the dead one.

This is a tighter subset of the broader chat.ethora.com migration work currently sitting on `tf-dev`. It is intentionally extracted into its own PR so it can be reviewed and merged quickly without coupling to the rest of the `tf-dev` work.

Changes

Files touched (all in `src/*` plus root `config.ts`):

  • `config.ts`, `src/config.ts` — API base URL, XMPP host, conference, domain defaults switched to chat.ethora.com.
  • `src/App.tsx` — `APP_CHAT_BASE_CONFIG` defaults updated; the second `ReduxWrapper` config block also moved to `api.chat.ethora.com`.
  • `src/AppWithNav.tsx` — commented JID examples (kept verbatim, only host rewritten so they remain accurate references).
  • `src/api.config.{ts,js}` — `defRoom` example JIDs updated to the new conference host.
  • `src/hooks/usePushNotifications.ts` — conference fallback updated.
  • `src/networking/xmpp/subscribeToRoomMessages.xmpp.ts` — commented IQ example updated.
  • `src/assets/test.xml` — replaced the leaked private host `case-any-place-iframe-xmpp-dev.atomwcapps.com` with `xmpp.example.com`, and rewrote remaining `xmpp.ethoradev.com` / `dev.xmpp.ethoradev.com` entries to `xmpp.chat.ethora.com`.

Out of scope (intentional)

  • `lib/src/*` (compiled output). To be regenerated when this lands and the package version is bumped.
  • `src/utils/clientRegistry.ts`. The new fallback host there is part of the larger `tf-dev` refactor and will be migrated alongside that work.

Companion changes already landed elsewhere

  • `dappros/ethora` (main): canonical "Default backend" + new "Hosted services" tables in the monorepo README.
  • `dappros/ethora-chat-component` (main): README updated to reference the new hosts and consolidate Swagger / playground / uptime links.
  • `dappros/ethora-chat-component-rn` (main): same defaults migration + new README.
  • `dappros/ethora-app-reactjs` (`dev-tf`): `.env-example`, `index.html`, `Chat.tsx` + improved README.
  • `dappros/ethora-bots` (main), `ethora-sdk-backend-integration` (main), `ethora-sdk-web-snippet` (main), `ethora-mcp-cli` (main), `ethora-setup` (main): same migration applied.
  • `dappros/ethora-sdk-playground`: PR #1.

Test plan

  • CI passes (build / lint / typecheck)
  • Manual: run the demo app from `src/App.tsx` and confirm the XMPP connection now goes to `xmpp.chat.ethora.com:5443`.
  • Confirm `src/assets/test.xml` no longer contains `atomwcapps.com`.

Production has migrated from *.ethoradev.com to *.chat.ethora.com.
This is a small, focused change that just updates the package's
built-in default hosts so consumers who do not pass a custom
baseUrl / xmppSettings stop landing on the dead cluster.

Files touched (src/* + root config.ts only):
- config.ts, src/config.ts: API base URL, XMPP host, conference, domain
  defaults switched to chat.ethora.com.
- src/App.tsx: APP_CHAT_BASE_CONFIG defaults updated; the second
  ReduxWrapper config block also moved to api.chat.ethora.com.
- src/AppWithNav.tsx: commented JID examples (kept verbatim, only host
  rewritten so they remain accurate references).
- src/api.config.{ts,js}: defRoom example JIDs updated to the new
  conference host.
- src/hooks/usePushNotifications.ts: conference fallback updated.
- src/networking/xmpp/subscribeToRoomMessages.xmpp.ts: commented IQ
  example updated.
- src/assets/test.xml: replaced the leaked private host
  case-any-place-iframe-xmpp-dev.atomwcapps.com with xmpp.example.com,
  and rewrote remaining xmpp.ethoradev.com / dev.xmpp.ethoradev.com
  entries to xmpp.chat.ethora.com so the fixture is generic and safe.

Out of scope for this PR (intentional):
- lib/src/* (compiled output) — to be regenerated when this lands and
  the package version is bumped.
- src/utils/clientRegistry.ts — refactored on tf-dev (not on main yet);
  the new fallback host added there will be migrated alongside that
  refactor.
@phwizard phwizard requested a review from RomanLeshc April 17, 2026 19:59
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