mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(browser): support CONFIG_PATH in browser gateway (#243)
This commit is contained in:
@@ -7,7 +7,9 @@ import { contextModule } from './modules/context'
|
||||
import { devicesModule } from './modules/devices'
|
||||
import { coresModule } from './modules/cores'
|
||||
|
||||
const config = loadConfig('../../config.toml')
|
||||
const configuredPath = process.env.MEMOH_CONFIG_PATH?.trim() || process.env.CONFIG_PATH?.trim()
|
||||
const configPath = configuredPath && configuredPath.length > 0 ? configuredPath : '../../config.toml'
|
||||
const config = loadConfig(configPath)
|
||||
|
||||
await initBrowsers()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user