nextjs에서 쓰는 Image 태그를 쓰는데, local에서는 잘나오던게, 배포하니 에러가 나더라 402 payment error
뭔가 뒤져보니, Vercel에서 Optimize 해주는데 Limit이 있었다.
결국 무료 호스팅 중이다보니..
여튼 next.config에서 unoptimized 옵션을 주면 된다.
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '*',
}
],
unoptimized: true //최적화안함을 설정
},
아님 지르면 되고! ㅋㅋ

https://vercel.com/docs/image-optimization/limits-and-pricing
Limits and Pricing for Image Optimization
This page outlines information on the limits that are applicable to using Image Optimization, and the costs they can incur.
vercel.com
728x90
'Etc' 카테고리의 다른 글
이래저래 생각 (0) | 2024.12.20 |
---|---|
조직 침묵 (1) | 2024.09.03 |
Vercel 배포 중, Type error: Cannot find module 에러 (0) | 2024.08.11 |
사이드 프로젝트 배포! (0) | 2024.08.10 |
2023 한 해를 돌아보는 찌끄레기 QA (0) | 2023.12.23 |