1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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)
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
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.