Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: avoid optimizing .ico in docker template (#5368)
Bogdan Chadkin4f7eb26b5f25
diff --git a/fixtures/react-router-docker/app/constants.mjs b/fixtures/react-router-docker/app/constants.mjsindex dedee9f093..4e6c11eb8c 100644--- a/fixtures/react-router-docker/app/constants.mjs+++ b/fixtures/react-router-docker/app/constants.mjs@@ -24,6 +24,10 @@ export const imageLoader = (props) => {if (props.format === "raw") {return props.src;}+ // IPX (sharp) does not support ico+ if (props.src.endsWith(".ico")) {+ return props.src;+ }// handle absolute urlsconst path = UrlCanParse(props.src) ? `/${props.src}` : props.src;// https://github.com/unjs/ipx?tab=readme-ov-file#modifiersdiff --git a/packages/cli/templates/react-router-docker/app/constants.mjs b/packages/cli/templates/react-router-docker/app/constants.mjsindex dedee9f093..8df4d9ec24 100644--- a/packages/cli/templates/react-router-docker/app/constants.mjs+++ b/packages/cli/templates/react-router-docker/app/constants.mjs@@ -24,6 +24,10 @@ export const imageLoader = (props) => {if (props.format === "raw") {return props.src;}+ // IPX (sharp) does not support ico+ if (props.src.endsWith('.ico')) {+ return props.src;+ }// handle absolute urlsconst path = UrlCanParse(props.src) ? `/${props.src}` : props.src;// https://github.com/unjs/ipx?tab=readme-ov-file#modifiers