News for hackers. Stuff that matters.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by pdimitar on Tuesday May 12, 2020 @12:43AM (#23150650)
What's the difference between `next build` and `next export`? I couldn't tell from reading your comment.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by cprecioso on Saturday May 23, 2020 @12:13PM (#23284113)
`next build` makes a server that needs to be run with nodejs. Dynamic pages keep being JS code. the fact that some pages are optimized down to html is an internal implementation detail.

`next export` makes a folder of static resources (HTML, packages client JS code, CSS). It also forces every page (even dynamic ones) to compile down to HTML.