From cc2a1ff4dfa9e5c2c18eecf50e1a108bf479d1a8 Mon Sep 17 00:00:00 2001 From: Yann Bertrand <5855339+yannbertrand@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:08:40 +0200 Subject: [PATCH 1/2] Revert "fix(news-card): use cdn url instead of nuxt image" This reverts commit 079aee684a4b8cd6a42dfeb3f3e555b8c734a30d. --- shared/components/NewsItemCard.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/components/NewsItemCard.vue b/shared/components/NewsItemCard.vue index cce060128..af093db44 100644 --- a/shared/components/NewsItemCard.vue +++ b/shared/components/NewsItemCard.vue @@ -2,7 +2,10 @@
  • -
    +
    @@ -30,6 +33,8 @@ import { useDateFormat } from '@vueuse/core'; const { locale: i18nLocale, t } = useI18n(); const localePath = useLocalePath(); +const img = useImage(); + const props = defineProps({ slice: { type: Object, From 09c42635e58ce5fe64c31002343ef90d6a36d1a9 Mon Sep 17 00:00:00 2001 From: Yann Bertrand <5855339+yannbertrand@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:10:52 +0200 Subject: [PATCH 2/2] fix(assets): do not nuxt imagify images.prismic.io at all --- pix-site/nuxt.config.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pix-site/nuxt.config.ts b/pix-site/nuxt.config.ts index 6bb2c108a..0abde8684 100644 --- a/pix-site/nuxt.config.ts +++ b/pix-site/nuxt.config.ts @@ -11,12 +11,7 @@ export default async () => { }, modules: ['@nuxtjs/prismic', '@nuxtjs/i18n', '@vueuse/nuxt', 'nuxt-image-prismic-fix'], image: { - domains: [ - 'pix-site.cdn.prismic.io', - 'storage.gra.cloud.ovh.net', - 'prismic-io.s3.amazonaws.com', - 'images.prismic.io', - ], + domains: ['pix-site.cdn.prismic.io', 'storage.gra.cloud.ovh.net', 'prismic-io.s3.amazonaws.com'], }, runtimeConfig: { public: {