Skip to content

Commit

Permalink
Allow images from public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Mar 12, 2023
1 parent 5ff2f8e commit 40a8aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 40a8aaa

Please sign in to comment.