-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : 무한스크롤에서 다음 페이지 불러올 때, 조건 변경 * feat : 그루핑 페이지 react-query Hydration * fix: Hydration에러로 인해 if분기 처리 제거 * fix : 브라우저 단에서 QueryClient 생성하도록 useState 활용 * feat : 평가 탭의 api prefetching * feat : QueryClient 객체 서버단에서 새로 생성 서버 단에서는 QueryClient를 처음 생성할텐데 cache가 필요한 지 모르겠습니다. * feat : Footer에서 NavLink로 교체 * feat : 이미지 placeholder 컴포넌트 구현 * feat : onClick에서 NavLink로 교체 * Revert "feat : 무한스크롤에서 다음 페이지 불러올 때, 조건 변경" This reverts commit 7e78b9f. * fix : group페이지에서도 Hydration적용되도록 queryFn 추가
- Loading branch information
Showing
16 changed files
with
90 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as https from 'https'; | ||
|
||
/** | ||
* S3 URL에서 데이터를 가져와 Buffer 객체로 반환합니다. | ||
* @param s3Url - S3 파일의 URL (문자열 타입) | ||
* @returns Promise<Buffer> - 비동기적으로 Buffer 객체를 반환하는 Promise | ||
*/ | ||
export const getBufferFromS3Url = (s3Url: string): Promise<Buffer> => { | ||
return new Promise((resolve, reject) => { | ||
https | ||
.get(s3Url, (res) => { | ||
const chunks: Buffer[] = []; | ||
|
||
res.on('data', (chunk: Buffer) => { | ||
chunks.push(chunk); | ||
}); | ||
|
||
res.on('end', () => { | ||
const buffer = Buffer.concat(chunks); | ||
resolve(buffer); | ||
}); | ||
}) | ||
.on('error', (error: Error) => { | ||
reject(error); | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters