From 113b3180524424999a0d0f7a6a6749973b39b9e9 Mon Sep 17 00:00:00 2001 From: ChiefORZ Date: Thu, 2 May 2024 19:37:52 +0700 Subject: [PATCH] fix: loader.js in README.md should include /image path --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7c01ef..d881938 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ export default function myImageLoader({ src, width, quality }) { return src; } if (isLocal) { - return `${imageOptimizationApi}/${fullSrc}?${query.toString()}`; + return `${imageOptimizationApi}/image/${fullSrc}?${query.toString()}`; } - return `${imageOptimizationApi}/${src}?${query.toString()}`; + return `${imageOptimizationApi}/image/${src}?${query.toString()}`; } ```