If your CMS frontend web application is mere information showing role then Gatsby is best in class static HTML exporter which is performant till edge. While NextJS provides you flexibility of both Static & Server Side renderings, for ex., you may start with Static website but your ambitions embolden to have eCommerce web where you need server side routes etc., where NextJS can be converted very easily to Server side from static Export.
Vishal Gupta
Senior Architect at Mindtree Ltd
6 upvotes·1.5K views
If your purpose is plain simply to upload a file which can handle by backend service than Gatsby is good enough assuming you have other content pages which will benefit from faster page loads for those Headless CMS driven pages. But if you have more logical/functional aspects like deciding content/personalization at server side of web application than choose NextJS.
3 upvotes·26.6K views