Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(app): mainnet in production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed Oct 4, 2023
1 parent f721cbc commit f5959d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/apps/desktop/src/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ let goDaemonExecutablePath =
? devDaemonBinaryPath
: prodDaemonBinaryPath

let lndhubFlags =
process.env.NODE_ENV == 'development'
? '-lndhub.mainnet=false'
: '-lndhub.mainnet=true'

console.log(`== ~ goDaemonExecutablePath:`, goDaemonExecutablePath)

const daemonArguments = [
Expand All @@ -61,6 +66,8 @@ const daemonArguments = [

'-data-dir',
userDataDir,

lndhubFlags,
]
logger.info('Launching daemon:', goDaemonExecutablePath, daemonArguments)
const daemonProcess = spawn(goDaemonExecutablePath, daemonArguments, {
Expand Down

0 comments on commit f5959d2

Please sign in to comment.