From bf6313c4f2196c5f35f107e525af66137045415c Mon Sep 17 00:00:00 2001 From: garrett Date: Fri, 15 Apr 2022 03:35:41 -0500 Subject: [PATCH] Update creating-a-resolver.md Fix myResolver typo --- docs/docs/advanced/creating-a-resolver.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/advanced/creating-a-resolver.md b/docs/docs/advanced/creating-a-resolver.md index b7b8762..de3ca33 100644 --- a/docs/docs/advanced/creating-a-resolver.md +++ b/docs/docs/advanced/creating-a-resolver.md @@ -26,7 +26,7 @@ such as: import { fsResolver, fetchResolver, Resolver } from "remix-image/server"; export const myResolver: Resolver = async (asset, url, options, basePath) => { - if (src.startsWith("/") && (src.length === 1 || src[1] !== "/")) { + if (url.startsWith("/") && (url.length === 1 || url[1] !== "/")) { return fsResolver(asset, url, options, basePath); } else { return fetchResolver(asset, url, options, basePath);