diff --git a/netlify.toml b/netlify.toml index 0a71e00..36c1f95 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,7 @@ NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com" [build] - command = "nuxt generate" \ No newline at end of file + command = "nuxt generate" + +[images] + remote_images = ["https://secure.woonuxt.com/.*"] diff --git a/woonuxt_base/components/CategoryCard.vue b/woonuxt_base/components/CategoryCard.vue index 6f38e8d..b95bd15 100644 --- a/woonuxt_base/components/CategoryCard.vue +++ b/woonuxt_base/components/CategoryCard.vue @@ -18,9 +18,7 @@ const ImageHeight = Math.round(imageWidth * 1.25); :src="node.image?.sourceUrl || fallbackImage" :alt="node.image?.altText || node.name" :title="node.image?.title || node.name" - loading="lazy" - format="avif" - fit="outside" /> + loading="lazy" />
diff --git a/woonuxt_base/components/generalElements/HeroBanner.vue b/woonuxt_base/components/generalElements/HeroBanner.vue index fbe9c04..7746e26 100644 --- a/woonuxt_base/components/generalElements/HeroBanner.vue +++ b/woonuxt_base/components/generalElements/HeroBanner.vue @@ -7,9 +7,7 @@ src="/images/hero-4.jpg" alt="Hero image" loading="eager" - fit="outside" sizes="sm:100vw lg:1400px" - format="webp" fetchpriority="high" preload />
diff --git a/woonuxt_base/components/productElements/ProductCard.vue b/woonuxt_base/components/productElements/ProductCard.vue index 8e3c232..baaf059 100644 --- a/woonuxt_base/components/productElements/ProductCard.vue +++ b/woonuxt_base/components/productElements/ProductCard.vue @@ -48,9 +48,7 @@ const imagetoDisplay = computed(() => { :alt="node.image?.altText || node.name" :title="node.image?.title || node.name" :loading="index <= 3 ? 'eager' : 'lazy'" - fit="outside" - class="skeleton" - format="webp" /> + class="skeleton" />
diff --git a/woonuxt_base/components/productElements/ProductImageGallery.vue b/woonuxt_base/components/productElements/ProductImageGallery.vue index 05d79e1..9c17b7c 100644 --- a/woonuxt_base/components/productElements/ProductImageGallery.vue +++ b/woonuxt_base/components/productElements/ProductImageGallery.vue @@ -45,12 +45,10 @@ watch( :imgAttrs="{ class: 'rounded-xl object-contain w-full min-w-[350px] skeleton' }" width="640" height="640" - fit="outside" :alt="imageToShow.altText || node.name" :title="imageToShow.title || node.name" :src="imageToShow.sourceUrl || fallbackImage" - fetchpriority="high" - format="webp" /> + fetchpriority="high" />
diff --git a/woonuxt_base/pages/product/[slug].vue b/woonuxt_base/pages/product/[slug].vue index a57c989..e58ec55 100644 --- a/woonuxt_base/pages/product/[slug].vue +++ b/woonuxt_base/pages/product/[slug].vue @@ -83,7 +83,7 @@ const disabledAddToCart = computed(() => { :gallery="product.galleryImages!" :node="type" :activeVariation="activeVariation || {}" /> - +