Skip to content

Commit

Permalink
[BUGFIX] Ne pas rappatrier les assets de images.prismic.io du tout
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Jun 20, 2024
2 parents db85ffa + 09c4263 commit e7f454b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 1 addition & 6 deletions pix-site/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
7 changes: 6 additions & 1 deletion shared/components/NewsItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<li class="news-item-card">
<nuxt-link class="news-item-card__link" :to="localePath(`/${t('news-page-prefix')}/${props.uid}`, i18nLocale)">
<div v-if="slice.illustration?.url" class="news-item-card__header">
<div class="news-item-card__illustration" :style="`background-image: url(${slice.illustration.url})`"></div>
<div
class="news-item-card__illustration"
:style="`background-image: url(${img(slice.illustration.url)})`"
></div>
</div>

<div class="news-item-card__body">
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e7f454b

Please sign in to comment.