mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +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 { devicesModule } from './modules/devices'
|
||||||
import { coresModule } from './modules/cores'
|
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()
|
await initBrowsers()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user