3 ms·
NextJS supports export for 100% static site generation (like Gatsby). Unlike Gatsby, it _also_ supports a server runtime and SSR, and everything in between. Its
by chrisweekly 6y ago
NextJS supports export for 100% static site generation (like Gatsby). Unlike Gatsby, it _also_ supports a server runtime and SSR, and everything in between. Its magic is the good kind that decomposes into sane primitives. Respectfully, it sounds like you might have needed to spend a little more time with the docs.
- naavis 6y agoIt does support static site generation, which I was using it for, but for example next/image requires the backend API server. The case I was referring to was such that defining the exact same function in a component file behaved differently than in a page file, I think. In one case the build failed if I remember correctly, because it was trying to build client-side code but the code referred Node.js stuff. No need to be aggressive. I don't have anything against Next, I just felt much more comfortable with Gatsby.
- madjam002 6y agoParent explicitly mentioned next/image, which is not supported by next export static site generation.