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 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-03-02 13:35:25 -05:00
commit e3f376b462

View file

@ -29,6 +29,8 @@ onMounted(async () => {
try { try {
if (isElectron) { if (isElectron) {
await atmStore.initializeForProduction() await atmStore.initializeForProduction()
} else if (import.meta.env.VITE_FORCE_MOCK === 'true') {
atmStore.initialize()
} else { } else {
await atmStore.initializeWithLightning() await atmStore.initializeWithLightning()
} }