Stupid Problems Require Stupid Solutions (Cloudflare Is Breaking My SVGs)

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

The author describes an issue with Cloudflare Pages that mangles SVG attributes, resulting in broken icons on their site. After extensive troubleshooting, including comparing builds with different deployment services, they narrow down the issue to Cloudflare Pages’ build process. The temporary solution involves writing a script to correct the SVG attributes post-build, although the author hopes for a more permanent fix in the future.

6m read timeFrom lloydatkinson.net
Post cover image
Table of contents
BackgroundWhere did my colours go?Narrowing in on the causeExcluding possibilitiesIsolating the causeDeploying to Another Cloudflare Pages ApplicationIf it ain’t broke… Oh wait, it is.A fix, for now?

Sort: