fix(browser): support CONFIG_PATH in browser gateway (#243)

This commit is contained in:
AlexMa233
2026-03-14 21:57:31 +08:00
committed by GitHub
parent be3d769013
commit dec98e6fc7
+3 -1
View File
@@ -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()