Skip to content

Commit

Permalink
feat : 이미지 srcSet, 캐시 늘림
Browse files Browse the repository at this point in the history
  • Loading branch information
9yujin committed Dec 15, 2024
1 parent 8d8eaf8 commit c3da024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/ticket/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ module.exports = withBundleAnalyzer(
},
images: {
imageSizes: [32, 64, 128, 256, 384],
deviceSizes: [750, 1080, 1920, 3840],
deviceSizes: [750, 1920],
domains: ['asset.dudoong.com'],
minimumCacheTTL: 5184000,
minimumCacheTTL: 31536000,
},
rewrites: async () => [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/ticket/src/components/home/blocks/EventLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const EventLink = (props: EventResponse) => {
<Image
src={img || ''}
fill={true}
sizes="(max-width: 768px) 50vw, 25vw"
sizes="400px"
alt={`${props.name}`}
onError={() => setImg(`/no-poster.png`)}
className="poster"
Expand Down

0 comments on commit c3da024

Please sign in to comment.