[Fix] vercel 배포 오류 해결 #110
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 체크 리스트
📝 작업 내용
문제 상황
원인
Vercel은 기본적으로 sharp를 지원하고, 배포 환경에서 사용을 적극 권장하고 있습니다.
하지만 Vercel 같은 서버리스 플랫폼에서는 제한된 메모리와 CPU 리소스를 제공하며, 일반적으로 표준 빌드 환경과는 차이가 있습니다.
sharp와 같은 네이티브 모듈은 플랫폼 종속적이어서, 라이브러리가 Vercel의 서버리스 환경과 호환되지 않으면 문제가 발생할 수 있습니다.
해결
현재 사용 버전 0.33
수정 후 사용 버전 0.32
참고
@vercel/nftdoes not pick up platform-specific binaries forsharpvercel/nft#371📂 결과물
🖥️ 공유 포인트 및 논의 사항