From e3f376b462fa9f34e391ca086f1e6adf551ece25 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Mon, 2 Mar 2026 13:35:25 -0500 Subject: [PATCH] feat: support VITE_FORCE_MOCK for demo/dev environments When VITE_FORCE_MOCK=true, initialize with mock services directly instead of requiring Electron or a live Lightning.Pub connection. Co-Authored-By: Claude Opus 4.6 --- apps/machine/src/App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/machine/src/App.vue b/apps/machine/src/App.vue index db90d09..67bcbee 100644 --- a/apps/machine/src/App.vue +++ b/apps/machine/src/App.vue @@ -29,6 +29,8 @@ onMounted(async () => { try { if (isElectron) { await atmStore.initializeForProduction() + } else if (import.meta.env.VITE_FORCE_MOCK === 'true') { + atmStore.initialize() } else { await atmStore.initializeWithLightning() }