diff --git a/netlify.toml b/netlify.toml index 36c1f95a..8b47236e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ NUXT_IMAGE_DOMAINS = "Comma separated list of domains. example.com,example2.com" [build] - command = "nuxt generate" + command = "nuxt build" [images] remote_images = ["https://secure.woonuxt.com/.*"] diff --git a/woonuxt_base/app/components/CategoryCard.vue b/woonuxt_base/app/components/CategoryCard.vue index aebaf0b3..eb870b2b 100644 --- a/woonuxt_base/app/components/CategoryCard.vue +++ b/woonuxt_base/app/components/CategoryCard.vue @@ -22,6 +22,7 @@ const ImageHeight = Math.round(imageWidth * 1.25); :alt="node.image?.altText || node.name" :title="node.image?.title || node.name" :loading="imageLoading" + :sizes="`50vw md:${imageWidth}px`" placeholder placeholder-class="blur-xl" />
diff --git a/woonuxt_base/nuxt.config.ts b/woonuxt_base/nuxt.config.ts index 89c8eb8d..11bc7413 100644 --- a/woonuxt_base/nuxt.config.ts +++ b/woonuxt_base/nuxt.config.ts @@ -55,6 +55,8 @@ export default defineNuxtConfig({ nitro: { routeRules: { '/': { prerender: true }, + '/**': { prerender: true }, + '/products': { swr: 3600 }, '/products/**': { swr: 3600 }, '/checkout/order-received/**': { ssr: false }, '/order-summary/**': { ssr: false },