Skip to content

Commit dec98e6

Browse files
authored
fix(browser): support CONFIG_PATH in browser gateway (#243)
1 parent be3d769 commit dec98e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/browser/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { contextModule } from './modules/context'
77
import { devicesModule } from './modules/devices'
88
import { coresModule } from './modules/cores'
99

10-
const config = loadConfig('../../config.toml')
10+
const configuredPath = process.env.MEMOH_CONFIG_PATH?.trim() || process.env.CONFIG_PATH?.trim()
11+
const configPath = configuredPath && configuredPath.length > 0 ? configuredPath : '../../config.toml'
12+
const config = loadConfig(configPath)
1113

1214
await initBrowsers()
1315

0 commit comments

Comments
 (0)