diff --git a/Dockerfile b/Dockerfile index 3f9dd8d..aaae893 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY . . ENV DATA_DIR=/app/data RUN mkdir -p $DATA_DIR && \ - deno install --allow-import --allow-ffi --allow-scripts=npm:sharp@0.33.5-rc.1 -e main.ts &&\ + deno install --allow-import --allow-ffi --allow-scripts=npm:sharp -e main.ts &&\ sed -i -e 's/"deno"/"no-deno"/' node_modules/@libsql/client/package.json &&\ deno task build diff --git a/routes/movies/[name].tsx b/routes/movies/[name].tsx index 8f44bd7..e04565d 100644 --- a/routes/movies/[name].tsx +++ b/routes/movies/[name].tsx @@ -57,7 +57,7 @@ export default async function Greet( title: author?.name, href: `/?q=${encodeURIComponent(author?.name)}`, }, - date.toString(), + datePublished.toString(), ]} > {movie.content.reviewRating && ( diff --git a/routes/recipes/[name].tsx b/routes/recipes/[name].tsx index 6624fbf..7202e64 100644 --- a/routes/recipes/[name].tsx +++ b/routes/recipes/[name].tsx @@ -36,7 +36,7 @@ function ValidRecipe({ portion, }: { recipe: RecipeResource; amount: Signal; portion: number }) { const ingredients = parseIngredients( - recipe.content.recipeIngredient?.join("\n"), + recipe.content.recipeIngredient?.join("\n") || "", ); return ( @@ -54,7 +54,8 @@ function ValidRecipe({
    {recipe.content.recipeInstructions && - (recipe.content.recipeInstructions.filter((inst) => !!inst?.length) + (recipe.content.recipeInstructions + .filter((inst) => !!inst?.length) .map((instruction) => { return (
  1. {serie.content?.reviewRating && (