kir-dev / kir-dev/blog-v3

Sanity does not like SVGs

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Right now if I upload an SVG in the post, I can't view it on the frontend, as the Sanity project does not allow it.

```
The requested resource "https://cdn.sanity.io/images/-2835x2004.svg?auto=format" has type "image/svg+xml" but dangerouslyAllowSVG is disabled
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by locating the frontend image configuration and the Sanity image delivery path, then reproduce the SVG upload and view failure. Done means an uploaded SVG can be displayed on the frontend without the reported dangerouslyAllowSVG error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.