Files
platform/src/servers/api
pastilhasandClaude Opus 5 ab2336516f dev-proxy: a stylesheet's url() is a URL
Two bugs, one line apart, both silent.

The `url(/…)` rule only matched an UNQUOTED target, so `url("/fonts/x.woff2")` — the form every
generator emits — went through untouched. And it only ran on HTML, so a linked stylesheet got the
narrow `/_bun/` rule and nothing else.

Together that meant a site's own @font-face rules kept pointing at `/fonts/…`, which inside the frame
is the platform's root. Every face 404'd and the preview rendered in a system fallback: nothing looked
broken, it just looked like a different site than the one being previewed.

JavaScript keeps the narrow rule — an absolute path in JS may not be a URL. In CSS it always is.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 06:42:14 +01:00
..
2026-07-25 23:30:20 +01:00
2026-02-26 17:42:59 +00:00
2026-08-04 03:24:15 +00:00
2026-08-15 00:15:38 +00:00
2026-08-29 03:29:58 +01:00
2026-08-25 05:27:52 +00:00
2026-02-25 07:27:30 +00:00
2026-08-15 00:15:38 +00:00
2026-02-16 19:34:35 +00:00