News for hackers. Stuff that matters.
Re:Create Next App by fouadmatin on Saturday April 29, 2017 @02:56PM (#14228117)
Hey HN! I'm Fouad from engineering team at Segment.

We built `create-next-app` after we started playing around with Next.js a couple months ago and slowly found ourselves creating more & more micro-next websites. When optimizing React for SEO or fast page loads, you really need to render pages server-side and Next makes that incredibly easy.

We'd been using Create React App for a while for UIs on top of our backend services and thought why can't we just use Next the same way?

Here's how it works:

$ npm install -g create-next-app $ create-next-app my-app

or

$ create-next-app --example with-socket.io my-app

(search through examples at https://open.segment.com/create-next-app#examples)

We have a few more ideas for how to improve (like combining examples!) and would love feedback on what y'all would like to see - let us know here: https://github.com/segmentio/create-next-app/issues

Re:Create Next App by cies on Saturday April 29, 2017 @05:01PM (#14228714)
I'd love to see an `--with-alt-js` flag where I can put values like "reason" or "purescript". :)
Re:Create Next App by patates on Saturday April 29, 2017 @02:42PM (#14228026)
Not to take away from your great work but... No love for offline?
Re:Create Next App by fouadmatin on Saturday April 29, 2017 @03:00PM (#14228130)
Ah that's a good point! Usually when we ran this it was in the office, I just created an issue for it https://github.com/segmentio/create-next-app/issues/2
Re:Create Next App by jaequery on Saturday April 29, 2017 @02:19PM (#14227880)
500 error
Re:Create Next App by tristanz on Saturday April 29, 2017 @02:22PM (#14227898)
Re:Create Next App by fouadmatin on Saturday April 29, 2017 @02:28PM (#14227933)
Sorry about that! We were pulling Github for the Next.js examples section and forgot to deploy caching + silencing that error.
Re:Create Next App by jaequery on Saturday April 29, 2017 @03:02PM (#14228141)
cool no worries, thx!