From 40a8aaa6a3d77155ec1ec93e5f5e79b1cb83714d Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 12 Mar 2023 07:34:53 -0400 Subject: [PATCH] Allow images from public folder --- src/utils/images.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/images.ts b/src/utils/images.ts index 619c62d..fcdf0f9 100644 --- a/src/utils/images.ts +++ b/src/utils/images.ts @@ -22,7 +22,7 @@ export const findImage = async (imagePath?: string) => { return null; } - if (imagePath.startsWith('http://') || imagePath.startsWith('https://')) { + if (imagePath.startsWith('http://') || imagePath.startsWith('https://') || imagePath.startsWith('/')) { return imagePath; }