[eric] electron: point packaged builds' analytics at the cloud edge (OPENSWARM_ANALYTICS_URL); dev stays local

This commit is contained in:
ciregenz
2026-06-24 18:36:58 -07:00
committed by ciregenz
parent bb92f6b205
commit 44ba123c22
+2
View File
@@ -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