Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby vs Next #519

Closed
SachaG opened this issue Oct 27, 2016 · 13 comments
Closed

Gatsby vs Next #519

SachaG opened this issue Oct 27, 2016 · 13 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more.

Comments

@SachaG
Copy link
Contributor

SachaG commented Oct 27, 2016

I would love to see a comparison between Gatsby and Next.js, which is a project with similar goals but a different approach. Maybe something like this?

@KyleAMathews
Copy link
Contributor

Yeah, that'd be useful for the website. Both projects definitely have very similar goals and ways of doing things. It seems like a lot of projects are converging on similar ideas.

From my quick looks around the main differences seem to be:

  • dynamic vs static rendering which have different tradeoffs
  • Gatsby has strong opinions about data fetching where Next.js leaves that up to you.

@dbismut
Copy link
Contributor

dbismut commented Oct 31, 2016

Am I wrong or Next.js doesn't support static site generation?
vercel/next.js#70

For me that's a huge bonus of Gatsby. But I guess that's what you meant by dynamic vs static rendering.

@erlend-sh
Copy link

erlend-sh commented Nov 6, 2016

Am I totally off on my understanding of next.js here, or could that framework basically be used to provide an alternative content server for Gatsby, similar to how you'd use Contentful or DatoCMS?

On a different note, @MoOx' Phenomic would probably be a good fit for such a comparison as well.

@SachaG
Copy link
Contributor Author

SachaG commented Nov 7, 2016

@erlend-sh I don't really think Next.js can be used for that, my understanding is that it would serve HTML markup, not raw JSON data. I might be wrong though.

@dbismut
Copy link
Contributor

dbismut commented Nov 7, 2016

My understanding is that DatoCMS, as a static site CMS, would be a perfect fit for Gatsby. I imagine that would require some work with DatoCMS so that Gatsby is part of their supported generators?

Since Next.js has dynamic server rendering, Contentful or Prismic would be ideal so that the content fetched from their API is served with the HTML generated by Next.js.

@erlend-sh Indeed it looks like Phenomic is a direct alternative to Gatsby.

@KyleAMathews
Copy link
Contributor

@dbismut DatoCMS is already working on that!

@dbismut
Copy link
Contributor

dbismut commented Nov 7, 2016

Oh wow very cool :)

@MoOx
Copy link

MoOx commented Dec 9, 2016

FYI, after discussing with now and Next creator (rauchg) at dotJS about next export and static rendering, I am currently trying to help Next.js team to think about a static export feature, so at some point we will be able to generate a static version of a next website.
After that I may refactor Phenomic to rely on Next framework.

I guess a direct comparison between Gatsby and Next don't really make sense: it will be clearly easier to make static* a website with Gatsby/Phenomic than with next directly (next will never support markdown out of the box (and things like that) as it's a minimalist framework).

*WE USE REACT SO IT'S DYNAMIC, right?

@erlend-sh
Copy link

I am currently trying to help Next.js team to think about a static export feature, so at some point we will be able to generate a static version of a next website.
After that I may refactor Phenomic to rely on Next framework.

I just wanna say I think that sounds like a really cool direction for Phenomic! Although I have no right to be, it does always bother me a tiny bit when two projects so conceptually and technologically similar - React-based static site generator - can't find a way to collaborate (that's not to say navigating that type of collaboration is easy!).

But with this change of direction for Phenomic, you'd be making a fundamentally different type of CMS with its own unique feature offering. ❤️ it!

@plouc
Copy link

plouc commented May 17, 2017

next export available for preview https://zeit.co/blog/next3-preview#next-export

@stale
Copy link

stale bot commented Nov 13, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Nov 13, 2017
@stale
Copy link

stale bot commented Nov 28, 2017

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Nov 28, 2017
@goldensunliu
Copy link

@dbismut so about #519 (comment), next now support static exports as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more.
Projects
None yet
Development

No branches or pull requests

7 participants