Skip to content

Commit

Permalink
Merge pull request kdt-8-4#101 from kdt-8-4/performanceimprove
Browse files Browse the repository at this point in the history
[Fix] 피드 페이지 이미지 최적화 진행 중(이미지 포맷 변경, 이미지 지연 로딩 적용 완료) kdt-8-4#82
  • Loading branch information
nebulaBdj authored Apr 3, 2024
2 parents 2e9987d + 7cf3d48 commit fe9dadb
Show file tree
Hide file tree
Showing 9 changed files with 646 additions and 25 deletions.
5 changes: 5 additions & 0 deletions weatherfit_refactoring/@types/feed/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ interface LIKE {
nickName: string
}

interface BlurData {
boardId: number
blurUrl: string
}

interface IMAGE {
boardId: number
imageId: number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
import withPlaiceholder from '@plaiceholder/next'

module.exports = {
/**
* @type {import('next').NextConfig}
*/

const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
formats: ['image/avif', 'image/webp'],
domains: [
'weatherfit-board-image.s3.amazonaws.com',
'heesung-s3.s3.ap-northeast-2.amazonaws.com',
Expand All @@ -16,6 +22,10 @@ module.exports = {
'static.lookpin.co.kr',
'i.pinimg.com',
'thumbnail.10x10.co.kr',
'encrypted-tbn0.gstatic.com',
'image.musinsa.com',
],
},
}

export default withPlaiceholder(nextConfig)
Loading

0 comments on commit fe9dadb

Please sign in to comment.