From 44ba123c2206d6401283a1faeed1edf847f94748 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 24 Jun 2026 00:39:56 -0700 Subject: [PATCH] [eric] electron: point packaged builds' analytics at the cloud edge (OPENSWARM_ANALYTICS_URL); dev stays local --- electron/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electron/main.js b/electron/main.js index 9b8405e2..c078640d 100644 --- a/electron/main.js +++ b/electron/main.js @@ -926,6 +926,8 @@ async function startBackend() { // app_version="unknown". The path-based fallback stays in place so this // change is purely additive. OPENSWARM_APP_VERSION: app.getVersion(), + // Packaged builds route analytics through the cloud edge; dev leaves it unset so the backend hits the local ingest. + ...(isPackaged ? { OPENSWARM_ANALYTICS_URL: 'https://api.openswarm.com' } : {}), // Inject the user's BCP 47 locale + IANA timezone. The Python backend // doesn't have reliable APIs for either: locale.getdefaultlocale() is // deprecated and inconsistent across OSes, and Python's local-tz string