Update
This commit is contained in:
1 parent
c552956516
commit
0c5ffc5001
5 files changed
+88
-7
No files matched your search
@@ -56,6 +56,12 @@ export function loadConfig(): Config {
|
||||
}
|
||||
rawConfig.openrouter.apiKey = process.env.OPENROUTER_API_KEY || rawConfig.openrouter.apiKey;
|
||||
|
||||
// Override browser settings from environment
|
||||
if (process.env.BROWSER_HEADLESS !== undefined) {
|
||||
if (!rawConfig.browser) rawConfig.browser = {};
|
||||
rawConfig.browser.headless = process.env.BROWSER_HEADLESS === 'true';
|
||||
}
|
||||
|
||||
if (!rawConfig.openrouter.apiKey) {
|
||||
throw new Error('OPENROUTER_API_KEY environment variable is required');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user