Skip to content

Commit 75aac2e

Browse files
authored
Merge pull request #363 from vuejs-jp/enhance/image-domains-test
test - update image.domains
2 parents a58aea5 + d0345b2 commit 75aac2e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
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/nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default defineNuxtConfig({
4040
// url: 'https://vuefes.jp/2024/',
4141
// },
4242
image: {
43-
domains: ['jjdlwtezpdclgxxagxpj.supabase.co'],
43+
domains: [process.env.NUXT_IMAGE_DOMAINS],
4444
quality: 80,
4545
format: ['avif', 'webp']
4646
},
@@ -175,6 +175,7 @@ export default defineNuxtConfig({
175175
newtSpaceUid: process.env.NUXT_NEWT_SPACE_UID,
176176
newtFormUid: process.env.NUXT_NEWT_FORM_UID,
177177
reCaptchaWebsiteKey: process.env.NUXT_RECAPTCHA_WEBSITE_KEY,
178+
imageDomains: process.env.NUXT_IMAGE_DOMAINS,
178179
// supabase
179180
supabaseUrl: process.env.SUPABASE_URL,
180181
supabaseKey: process.env.SUPABASE_KEY,

packages/ui/components/speaker/Avatar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ const size = computed(() => {
1919
</script>
2020

2121
<template>
22-
<img
22+
<NuxtImg
2323
:src="src"
2424
:alt="alt"
2525
:loading="loading"
26+
placeholder
2627
:width="size"
2728
:height="size"
2829
fit="cover"

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"NUXT_NEWT_SPACE_UID",
1414
"NUXT_NEWT_FORM_UID",
1515
"NUXT_RECAPTCHA_WEBSITE_KEY",
16+
"NUXT_IMAGE_DOMAINS",
1617
"SUPABASE_URL",
1718
"SUPABASE_KEY",
1819
"SERVICE_KEY",

0 commit comments

Comments
 (0)