Skip to content

Commit 74cbc2c

Browse files
committed
test - update image.domains
1 parent a58aea5 commit 74cbc2c

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ 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+
alias: {
45+
unsplash: `https://${process.env.NUXT_IMAGE_DOMAINS}`,
46+
},
47+
provider: 'ipx',
4448
quality: 80,
4549
format: ['avif', 'webp']
4650
},
@@ -175,6 +179,7 @@ export default defineNuxtConfig({
175179
newtSpaceUid: process.env.NUXT_NEWT_SPACE_UID,
176180
newtFormUid: process.env.NUXT_NEWT_FORM_UID,
177181
reCaptchaWebsiteKey: process.env.NUXT_RECAPTCHA_WEBSITE_KEY,
182+
imageDomains: process.env.NUXT_IMAGE_DOMAINS,
178183
// supabase
179184
supabaseUrl: process.env.SUPABASE_URL,
180185
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)