Skip to content

Conversation

@edhcoding
Copy link
Contributor

@edhcoding edhcoding commented Feb 19, 2025

✅ 체크 리스트

  • 적절한 Title 작성
  • 적절한 Label 지정
  • Assignee 및 Reviewer 지정
  • 로컬 작동 확인
  • Merge 되는 브랜치 확인

📝 작업 내용

문제 상황

스크린샷 2025-02-19 오후 4 33 11

원인

Vercel은 기본적으로 sharp를 지원하고, 배포 환경에서 사용을 적극 권장하고 있습니다.

하지만 Vercel 같은 서버리스 플랫폼에서는 제한된 메모리와 CPU 리소스를 제공하며, 일반적으로 표준 빌드 환경과는 차이가 있습니다.

sharp와 같은 네이티브 모듈은 플랫폼 종속적이어서, 라이브러리가 Vercel의 서버리스 환경과 호환되지 않으면 문제가 발생할 수 있습니다.

해결

현재 사용 버전 0.33
수정 후 사용 버전 0.32

참고

  1. https://www.reddit.com/r/nextjs/comments/1akbxbq/sharp_module_issue_on_nextjs/?rdt=38178
  2. @vercel/nft does not pick up platform-specific binaries for sharp vercel/nft#371

📂 결과물

🖥️ 공유 포인트 및 논의 사항

@edhcoding edhcoding self-assigned this Feb 19, 2025
@github-actions
Copy link

🪄 Storybook: https://67124aeba8e39ab430227857-gnkmsxhwuj.chromatic.com/
🕖 Update: 2025년 02월 19일 16시 37분 54초

@edhcoding edhcoding merged commit e5aaa6f into dev Feb 19, 2025
4 checks passed
@edhcoding edhcoding deleted the fix/sharp branch February 19, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants