Skip to content

Commit 80cc0bd

Browse files
committed
attempt
1 parent 366c36b commit 80cc0bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/builder/app/routes/cgi.image.$.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
7373
// Use the format from URL parameters instead of hardcoding "auto"
7474
// This allows getAssetUrl() to specify format=raw for SVGs and other non-optimizable formats
7575
const imgHref = wsImageLoader({
76-
src: name,
7776
...imageParameters,
77+
src: name,
78+
format: imageParameters.format === "raw" ? "raw" : "auto",
7879
});
7980

8081
const imgUrl = new URL(env.RESIZE_ORIGIN + imgHref);

0 commit comments

Comments
 (0)