This commit is contained in:
jjbrunton committed 2026-01-04 19:24:56 +00:00
1 parent c552956516
commit 0c5ffc5001
5 files changed
+88 -7

No files matched your search

+6
View File
@@ -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');
}