Next.js 7
nextjs.org
nextjs.org
We use a bunch of Zeit's tools (particularly Next.js and its static export feature) at Common (https://www.common.com -- we're hiring!), and they're consistently such good and reliable products (doesn't hurt that they have a sharp focus on developer experience).
Congrats to Tim and to the entire Zeit team!
Insane is an understatement. The dude has helped me on the support channel more times than I can count. Forever grateful.
Not to mention pkg is pretty awesome too from Zeit
when looking at tools to build a business on, that can be a liability no?
As said elsewhere, I mostly act as a curator of a very large effort of hundreds of individuals. The project was actually co-created by several other people who work on infrastructure at ZEIT (e.g..: Naoyuki Kanezawa led all the initial releases, designed important parts of the framework, Arunoda Susiripala contributed the test harness and key build pipeline infrastructure, and so on).
So Next.js is a framework for a framework?
https://github.com/zeit/next.js/
So a specialized framework based on another framework
Asking because Next.js has been one of the reasons I've become more interested in the React ecosystem.
It provides structure to you app, gives you everything you need to build out a front end out of the box (router, vuex, build system, etc). And deploying it is a breeze, giving you the option for static html builds, or a SPA, or you can go full blown SSR, with the best part being you can switch between them whenever seamlessly if your needs change. It provides enough opinion that your project has a consistent structure, but doesn’t get in the way if you need to so,etching outside of norm, extending and configuring it is a breeze. And to top it off, the docs are great.
Definitely would recommend it to anyone looking to build any sort of non trivial front end with Vue. I know my next few projects will certainly be using it.
[2] https://github.com/vuejs/awesome-vue/blob/master/README.md#v...
In Next you've had to either set up and configure nginx locally or proxia via an Express server, both options that that are a bit of a hassle to set up for such a common case.
In development you'd use micro-proxy [2] and define a rules-dev.json with local mappings, and then have a package.json script to fire up that proxy for local testing.
That way ypu can use django sessions, authentication, login, admin, etc.
The node server just does rendering, and creates client side JS based on data it is given by Django.
It took 25 lines of code, yes, but pretty much worth it if you have a long term project like a single app that your company is built around.
Both are true statements, however people generally like to discuss how much improved the new releases are versus how much worse the old ones are.
Fun fact, it's important to understand that relationship in other areas as well like the stock market; if your holdings lose 50% of their value, they then need to increase by 100% for you to be back neutral :)
You can add an asynchronous function called .getInitialProps, which should return some props that are required for the page. On the initial load, Next will first run through getInitialProps, then render the actual component with those props. From then on, assuming you're using 'next/link' for routing, everything should work like a single page app. All of the pages except for the initial one are rendered on the client.