My Next js application stops the deploy process without giving any errors. It doesn’t give any errors. My project is big, so this might be the reason, but it should still give an error, right?
What part of the deploy process does it stop? Where the do the logs cut off at?
Generating static pages (10675/12126)
15:28:27.523
Generating static pages (10686/12126)
15:29:31.830
Generating static pages (10697/12126)
15:30:34.363
Generating static pages (10707/12126)
15:31:38.266
Generating static pages (10718/12126)
15:32:39.149
Generating static pages (10728/12126)
15:33:42.107
Generating static pages (10738/12126)
15:34:50.419
Generating static pages (10748/12126)
15:35:55.521
Generating static pages (10759/12126)
15:37:00.414
Generating static pages (10769/12126)
15:38:07.020
Generating static pages (10778/12126)
15:39:13.014
Generating static pages (10787/12126)
15:40:14.474
Generating static pages (10796/12126)
15:41:20.045
Generating static pages (10806/12126)
15:42:26.000
Generating static pages (10817/12126)
15:43:30.869
Generating static pages (10828/12126)
15:44:30.919
Generating static pages (10837/12126)
15:45:33.919
Generating static pages (10847/12126)
It stopped without any errors.
12126 static pages is a lot to generate during build time and probably causing OOM during build. You can reduce the number of pages that are being generated during build time and move to ISR which should improve the Build performance.
I switched to ISR, thank you.