1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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)
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa
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.