import { app } from 'electron' ; import { join } from 'path' ; const isDev = ( process . env . NODE_ENV === 'development' ) ; const apiHost = isDev ? 'http://localhost:8100' : 'https://yourdomain.com' ; app . setAppLogsPath ( ) ; const dataPath = app . getPath ( 'userData' ) ; const logPath = app . getPath ( 'logs' ) ; const dbPath = join ( dataPath , 'databases' ) ; const lvPath = join ( dbPath , 'level' ) ; export { isDev , apiHost , dataPath , logPath , dbPath , lvPath } ;