1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
The problem was due to the 1 MB size limit of CloudFront Lambda@Edge responses. I didn't realize that Next.js's serverside rendering was creating a large <script id="__NEXT_DATA__"> tag on my homepage with all the fetched info from my API duplicated multiple times over. This resulted in my app's homepage being >2 MB.
I refactored my app to only send one network request, and made sure that data is only put into the NEXT_DATA tag once. The app now works.
(I still don't know how to sign in to the original account I used to ask the question)
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
I made this question but when I tried to sign in a day later, re:Post made me make another account and now I can't access the previous account which made this question.