Chore: homepage tests (#6278)

This commit is contained in:
shamoon
2026-02-04 19:58:39 -08:00
committed by GitHub
parent 7d019185a3
commit 872a3600aa
558 changed files with 32606 additions and 84 deletions
+2 -1
View File
@@ -37,7 +37,7 @@ export default async function handler(req, res) {
return res.status(400).json({ error: "Invalid provider" });
}
const providersInConfig = getSettings()?.providers;
const providersInConfig = getSettings()?.providers ?? {};
let apiKey;
Object.entries(providersInConfig).forEach(([key, val]) => {
@@ -78,5 +78,6 @@ export default async function handler(req, res) {
});
}
/* c8 ignore next 2 -- provider validation above currently makes this unreachable */
return res.status(400).json({ error: "Invalid configuration" });
}