Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.
>happy to answer questions about the RFC Would love to hear about the parts of the RFC where you guys took some inspiration from Remix!
Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
21–30 of 123 posts
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#22I'm excited to see the wheels turning, but it feels a bit like the best feature of Next.js IMHO (SSG) is going to get more difficult, or possibly become unusable. A deprecation feels incoming. It could be confirmation bias as I've been a little worried about that for awhile since people using SSG aren't as likely to buy cloud services, so there's some incentive misalignment there, but ever since the Image component w…
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#23I'm excited to see the wheels turning, but it feels a bit like the best feature of Next.js IMHO (SSG) is going to get more difficult, or possibly become unusable. A deprecation feels incoming. It could be confirmation bias as I've been a little worried about that for awhile since people using SSG aren't as likely to buy cloud services, so there's some incentive misalignment there, but ever since the Image component w…
Naw, I don't agree. SSG is a killer feature. The fact that Next.js is able to do both SSG and SSR means that it's positioned to be a wholesale replacement for most React tech stacks. You can still have a "CSR-like" app with SSG, while having all of the Next.js conventions (such routing, layouts, etc.). Additionally, it's actually pretty useful for sites that need to be heavily SEO-optimized. Next.js is an impressive…
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#24Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.
Am I correct thinking this will help create a simpler integration with - just hypothetically - Prisma calls that are dependent on app auth states in a single page? Replacing auth providers and moving them into Layouts? Daily user, very excited!
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#25There's some obvious inspiration from other frameworks, as Remix and Angular 2.x have had nested routing for years.
Hopefully this will allow for less repetition in pages and a more elegant structure to projects.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#26Could a smart person please compare and contrast this RFC and the ideas of remix.run?
According to Ryan Florence (Remix's creator) they are "ripping features straight from Remix". https://twitter.com/ryanflorence/status/1528859776930545665
However, this is why I don't use Twitter. Remix is not just "an open-source project", it's a full-fledged company. This is definitely not the time (or the forum) to lay your cards out on the table...
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#27Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.
Also, does this mean you cannot have a page named "layout" anymore?
Lastly, I appreciate all the hard work that goes into nextjs, it's a great developer experience and my goto framework.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#28Earlier quoted context omitted.
According to Ryan Florence (Remix's creator) they are "ripping features straight from Remix". https://twitter.com/ryanflorence/status/1528859776930545665
So we need to give credit now to every little bit of inspiration we get when coming up with new features and ideas? Not really sure what the problem is here.
IMO it's really just a matter of time before good ideas end up in other projects. It's inevitable. Obviously everyone wants their framework to be as good and popular as possible.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#29Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.
I like that you have thought about incremental adoption. However it looks like you're effectively deprecating the "/pages" directory. Which kind of sucks, as it's much more informative name, than the new generic "/app" folder. Also, does this mean you cannot have a page named "layout" anymore? Lastly, I appreciate all the hard work that goes into nextjs, it's a great developer experience and my goto framework.
That's a good point about having a route `/layout` – I will check with the team about that.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#30Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.
Not seeing it in the article, but how are you handling `index` routing in the `app` folder? If you are putting it in the top directory (e.g. `/app/index.js`), is it not able to get a custom `layout.js` file (as that position is used for the global variant)? If it's in an `index` folder (e.g. `/app/index/page.js`), how would one create a route for `example.com/index`?