Skip to content

Commit

Permalink
Merge pull request #370 from vuejs-jp/revert-369-fix/nuxt-image
Browse files Browse the repository at this point in the history
Revert "fix/ nuxt-imageのdomains設定を修正"
  • Loading branch information
jiyuujin authored Oct 7, 2024
2 parents f7f4ec6 + d541beb commit 9242f1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/components/sponsor/SponsorList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const currentLocale = useLocaleCurrent().locale
class="sponsor-list-item-link"
:to="`${currentLocale === 'ja' ? '/' : `/${currentLocale}/`}sponsors/${item['detail_page_id']}`"
>
<NuxtImg
<img
class="sponsor-list-item-image"
:src="item['image_url']"
:alt="item.name"
Expand Down
3 changes: 0 additions & 3 deletions apps/web/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,3 @@
from = "/2024/staff/invite"
to = "/2024/200.html"
status = 200

[images]
remote_images = ["https://jjdlwtezpdclgxxagxpj.supabase.co/.*"]
3 changes: 1 addition & 2 deletions apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export default defineNuxtConfig({
// url: 'https://vuefes.jp/2024/',
// },
image: {
domains: [process.env.NUXT_IMAGE_DOMAINS],
provider: 'netlify',
domains: ['jjdlwtezpdclgxxagxpj.supabase.co'],
quality: 80,
format: ['avif', 'webp']
},
Expand Down
9 changes: 8 additions & 1 deletion packages/ui/components/speaker/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const size = computed(() => {
</script>

<template>
<NuxtImg :src="src" :alt="alt" :loading="loading" :width="size" :height="size" fit="cover" />
<img
:src="src"
:alt="alt"
:loading="loading"
:width="size"
:height="size"
fit="cover"
/>
</template>

<style scoped>
Expand Down

0 comments on commit 9242f1e

Please sign in to comment.