From f1ff0843e8831c6579db1e0ceff877f76226978a Mon Sep 17 00:00:00 2001 From: Christopher Tso Date: Wed, 1 Apr 2026 02:04:12 +0000 Subject: [PATCH] fix(docs): add noop image service to prevent sharp errors Without this, adding any image to the docs will fail the build with MissingSharp since sharp is not installed. Co-Authored-By: Claude Opus 4.6 --- docs/astro.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index deb31fd8..5a326bd3 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -6,6 +6,8 @@ import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ site: 'https://allagents.dev', + // Use noop image service to avoid requiring sharp for image optimization + image: { service: { entrypoint: 'astro/assets/services/noop' } }, vite: { plugins: [tailwindcss()], },