diff --git a/apps/browser/src/index.ts b/apps/browser/src/index.ts index 072fc4a8..05bdec35 100644 --- a/apps/browser/src/index.ts +++ b/apps/browser/src/index.ts @@ -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()