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
+4
View File
@@ -9,6 +9,10 @@ export default async function handler(req, res) {
const provider = Object.values(searchProviders).find(({ name }) => name === providerName);
if (!provider) {
return res.json([query, []]);
}
if (provider.name === "Custom") {
const widgets = await widgetsFromConfig();
const searchWidget = widgets.find((w) => w.type === "search");