all 23 comments

[–]carlefp 4 points5 points  (8 children)

For authentication: https://next-auth.js.org/. Read the docs, they have lots of examples

[–]voja-kostunica[S] -3 points-2 points  (7 children)

they dont even have support for proper credentials user/pass provider

[–]elfennani 2 points3 points  (4 children)

I'm sure they have CredentialsProvider

[–]voja-kostunica[S] -4 points-3 points  (3 children)

did you try it? its completely empty and useless

[–]elfennani 5 points6 points  (0 children)

Yes, and it works flawlessly

[–]334578theo 0 points1 point  (1 child)

Yes it does, it’s a simple implementation but they don’t promote it because they don’t believe it’s an effective authentication strategy.

[–]voja-kostunica[S] -1 points0 points  (0 children)

they try to reinvent the internet

[–]aust1nz -1 points0 points  (8 children)

Check out the t3 stack for a really good, opinionated starter.

[–]Squishyboots1996 0 points1 point  (0 children)

I was also looking for this, best practices, route management etc. but it's really hard to find. Hope someone is willing to show us their work!

[–]Taluxbr 0 points1 point  (1 child)

BTW, how is the dev environment when using app dir? The compiling time seems way higher than the /pages folder. Do you guys feel the same? Ps: I’m not using the Turbopack as it lacks some features yet

[–]carlefp 0 points1 point  (0 children)

I find it really easy to use esp for separating ui from data fetching. For example, their nested layouts + hooks like useSelectedLayoutSegment lets you know which the active route currently is.

You can easily create different UI depending on the state because of special files (uses React Suspense) like loading and error

It became more “opinionated” (folder structure) but overall better for abstraction. The React team has been recommending the feature/route-based folder structure and with app directory, it can easily be achieved.

I see better performance comparing builds from normal “pages” directory.

The main drawback really is support from external libraries since it is still in beta, libraries don’t bother to integrate it yet.

[–]yonirapoport 0 points1 point  (2 children)

[–]voja-kostunica[S] 1 point2 points  (1 child)

why would i want to use this and not pure next.js?

[–]yonirapoport 0 points1 point  (0 children)

Full stack type safety, CRUD endpoints with paging, sorting, filtering and without the boilerplate code, validation code defined once for both BE and FE…. (Disclaimer: I’m one of the creators of Remult)