Skip to content

Commit

Permalink
Merge pull request #27 from glweems/patch-1
Browse files Browse the repository at this point in the history
Update creating-a-resolver.md
  • Loading branch information
Josh-McFarlin authored Apr 21, 2022
2 parents 04492ee + bf6313c commit 5015ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/advanced/creating-a-resolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5015ec2

Please sign in to comment.