Host public assets from AWS

This commit is contained in:
Sakura Knoll
2022-03-05 22:35:09 +09:00 Unverified
parent 5c704cea7f
commit aa95c28177
1456 changed files with 86 additions and 51 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
import { Box, Card, Text } from '@theme-ui/components'
import { useRouter } from 'next/router'
import { assetsBucketBaseUrl } from '../../lib/consts'
import { ElfData } from '../../lib/honkai3rd/elfs'
import { translate } from '../../lib/i18n'
import PageLink from '../atoms/PageLink'
@@ -30,7 +31,7 @@ const ElfCard = ({ elf }: ElfCardProps) => {
<PageLink href={`/honkai3rd/elfs/${elf.id}`}>
<SquareImageBox
alt={elfName}
src={`/assets/honkai3rd/elfs/icon-${elf.id}.png`}
src={`${assetsBucketBaseUrl}/honkai3rd/elfs/icon-${elf.id}.png`}
size={[100]}
/>
<Box