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:
parent
1861f24187
commit
e3f376b462
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue