Skip to content

Commit f7f4ec6

Browse files
authored
Merge pull request #369 from vuejs-jp/fix/nuxt-image
fix/ nuxt-imageのdomains設定を修正
2 parents 020336d + fa62e6b commit f7f4ec6

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

apps/web/app/components/sponsor/SponsorList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const currentLocale = useLocaleCurrent().locale
2222
class="sponsor-list-item-link"
2323
:to="`${currentLocale === 'ja' ? '/' : `/${currentLocale}/`}sponsors/${item['detail_page_id']}`"
2424
>
25-
<img
25+
<NuxtImg
2626
class="sponsor-list-item-image"
2727
:src="item['image_url']"
2828
:alt="item.name"

apps/web/netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@
5757
from = "/2024/staff/invite"
5858
to = "/2024/200.html"
5959
status = 200
60+
61+
[images]
62+
remote_images = ["https://jjdlwtezpdclgxxagxpj.supabase.co/.*"]

apps/web/nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export default defineNuxtConfig({
4040
// url: 'https://vuefes.jp/2024/',
4141
// },
4242
image: {
43-
domains: ['jjdlwtezpdclgxxagxpj.supabase.co'],
43+
domains: [process.env.NUXT_IMAGE_DOMAINS],
44+
provider: 'netlify',
4445
quality: 80,
4546
format: ['avif', 'webp']
4647
},

packages/ui/components/speaker/Avatar.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ const size = computed(() => {
1919
</script>
2020

2121
<template>
22-
<img
23-
:src="src"
24-
:alt="alt"
25-
:loading="loading"
26-
:width="size"
27-
:height="size"
28-
fit="cover"
29-
/>
22+
<NuxtImg :src="src" :alt="alt" :loading="loading" :width="size" :height="size" fit="cover" />
3023
</template>
3124

3225
<style scoped>

0 commit comments

Comments
 (0)