Skip to content

Commit

Permalink
fix: 나눔글 상세 thumbnailImage 필드값 적용 수정 (#39)
Browse files Browse the repository at this point in the history
* chore: next.config.js remotePatterns 추가

* fix: 나눔글 상세> 조회 API thumbnailImage 필드값 수정 적용
  • Loading branch information
hyeseon-han authored Mar 1, 2024
1 parent c52523f commit 3e10a43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['mara-s3bucket.s3.ap-northeast-2.amazonaws.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'fridge-link-img.s3.ap-northeast-2.amazonaws.com',
},
{
protocol: 'https',
hostname: 'mara-s3bucket.s3.ap-northeast-2.amazonaws.com',
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions src/pages/share/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ const ShareDetailPage: NextPage = () => {
<>
<div className={'min-h-screen mb-[110px]'}>
<Header backgroundColor="transparent" />
{data?.thumbNailImage ? (
{data?.thumbnailImage ? (
<Image
alt="detailImage"
src={data?.thumbNailImage}
src={data?.thumbnailImage}
sizes="100vw"
width={0}
height={0}
Expand Down
1 change: 0 additions & 1 deletion src/types/share/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ interface ShareData {
interface ShareDetailData extends ShareData {
userName: string;
profileImage: ProfileEnum;
thumbNailImage: string;
}

interface ShareApplicantData {
Expand Down

0 comments on commit 3e10a43

Please sign in to comment.