1 Answer
- Newest
- Most votes
- Most comments
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)
answered 2 years ago
Relevant content
- asked a year ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
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.