-
-
-
-
-
-
-
Error: {{ error.message }}
+
+
{
{{ recipe.title }}
{{ recipe.category }} • {{ recipe.origin }}
- View Recipe
+
+ View Recipe
+
-
-
-
No recipes found for "{{ searchQuery }}"
+
+
+
+
No recipes found for "{{ searchQuery }}"
+
diff --git a/server/trpc/routers/recipes.ts b/server/trpc/routers/recipes.ts
index 254c2a9..9103a2c 100644
--- a/server/trpc/routers/recipes.ts
+++ b/server/trpc/routers/recipes.ts
@@ -53,10 +53,7 @@ export const recipeRouter = router({
new URL(`search.php?s=${input}`, apiUrl).href,
);
if (!data?.meals) {
- throw createError({
- statusCode: 404,
- statusMessage: "Recipe not found",
- });
+ return [];
}
const recipes = parseRecipeData(data);
return recipes;