You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(addon): build & test the add-on locally as a system add-on (#955)
* WIP build locally
* feat(addon): build the system add-on against a local backend
Add a `:local` build path that produces the system/built-in add-on (system
id, dev-mode bundle) wired to a locally running Send backend + client, so the
system-add-on code path can be exercised end-to-end against localhost.
- build:dev:system:local / sync:builtin:local / dev:builtin:local scripts set
ADDON_ENV=local.
- scripts/build.sh, on ADDON_ENV=local, builds in Vite development mode
(import.meta.env.MODE === 'development' so the frontend probes the local
backend for storage type and prod Sentry stays off) and forces localhost
URLs (VITE_SEND_SERVER_URL/CLIENT_URL, stage OIDC) as exported VITE_* vars,
which Vite's loadEnv prioritizes over the .env prod block. Each is
overridable inline for different local ports.
- README documents the workflow, that CORS already works (the backend
auto-allows moz-extension:// origins), and three ways to get past the
tls-dev-proxy self-signed cert (OS trust + enterprise roots, a persistent
profile exception, or targeting the plain-HTTP backend on :8080).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments