Live data from Hacker News

Next.js 12

nextjs.org

171–180 of 293 posts

Re: Next.js 12

#171
post #79
post #48

If Next.js + Vercel is the leader of the production-ready frontend-as-a-service space, why hasn't a similar leader emerged in the backend-as-a-service space? I would love a clean Vercel-like abstraction on top of standard cloud primitives (functions, queues, events, workflows, etc.) with everything wired up nicely and focused on developer experience. It just seems like AWS is so configuration heavy that it is ripe fo…

Tried a couple shots at it Go Micro (17k stars) https://github.com/asim/go-micro Micro (10k stars) https://github.com/micro/micro M3O (1.7k stars) https://m3o.com

This appears to be a framework and not a hosted backend service

Re: Next.js 12

#172
Next.js reinvents so many things that already exist in PHP (also Python, Ruby). Check out for example what is already possible with Symfony in their docs[0]. Next.js "biggest" release just introduced middleware and html rendering with zero client-side js !

What people like in tools like next.js is not the framework itself but the abstraction over infrastructure, using platforms like vercel. Imagine a platform as cheap, modern and easy to use as vercel but for PHP, basically shared hosting on steroids. Do you believe people would still care so much about Next.js in that scenario ?

[0] https://symfony.com/doc/current/index.html

Re: Next.js 12

#173
post #135
post #48

If Next.js + Vercel is the leader of the production-ready frontend-as-a-service space, why hasn't a similar leader emerged in the backend-as-a-service space? I would love a clean Vercel-like abstraction on top of standard cloud primitives (functions, queues, events, workflows, etc.) with everything wired up nicely and focused on developer experience. It just seems like AWS is so configuration heavy that it is ripe fo…

I'm using Hasura for that right now to handle the API + database part. Fairly satisfied with GraphQL API generators so far - they get the ball running quickly and take over the boring CRUD parts so that I don't have to.

Hasura is at that level of being a full-featured back-end platform. I think that the best way to get started with Hasura is https://www.nhost.io

Re: Next.js 12

#174
post #2

Hey everyone, Lee from Vercel here! Happy to answer any questions about Next.js 12. Personally, I'm extremely excited for the new Rust compiler.

I'm personally curious how the Next is able to achieve the claim of "zero client-side JavaScript" mentioned here[1] using react server components? It just doesn't seem to make sense to me, and the HN clone example and my barebones test project also clearly still load about 74.2 KB of JavaScript. Is the claim supposed to mean that the server components won't require additional JS, or maybe that they won't need to exec…

I think it means that any page that only renders server components can just push the built html to the browser. If there were to be client components, like an upvote button, react would be required for that to hydrate the DOM.

It’s very similar to what Astro is doing. Only adding the JS if it’s actually necessary.

Re: Next.js 12

#175

With server component, i really think next.js hybrid app with cordova will achieve high performance even better than native app (like react-native).

Agreed! Next.js works great with this model! I’d recommend Capacitor over Cordova (similar but more modern). Here’s an example: https://github.com/mlynch/nextjs-tailwind-ionic-capacitor-st...

Not to sidetrack but how is this better than wrapping Rails/Hotwire app in a Capacitor web view? I'm looking for reasons to use Next because it seems super cool.

Re: Next.js 12

#176

Earlier quoted context omitted.

Vercel does come with a Supabase integration: https://vercel.com/integrations/supabase And from my limited understanding, Supabase is psql with extras.

Supabase developer here. Supabase gives you full PostgreSQL access as well as a REST api interface (Postgrest) with integrated authentication (based on GoTrue), S3-based storage also integrated to authentication and integrated with your PostgreSQL instance, an easy dashboard interface and a bunch more. There’s a generous free tier and a hosted option that’s ready to scale immediately. Let us know if you have any more…

You guys should advertise the Postgres+Postgrest thing more prominently, I've been looking through your materials this morning and the Postgrest part wasn't clear. I would have been more apt to choose Supabase immediately since it seems like I wouldn't encounter vendor lock in, which was the main concern.

Re: Next.js 12

#177

Next.js reinvents so many things that already exist in PHP (also Python, Ruby). Check out for example what is already possible with Symfony in their docs[0]. Next.js "biggest" release just introduced middleware and html rendering with zero client-side js ! What people like in tools like next.js is not the framework itself but the abstraction over infrastructure, using platforms like vercel. Imagine a platform as chea…

I think that people who like JavaScript are happy with getting the abstractions you mentioned.

If building a vercel for PHP was such an obvious idea, I imagine someone would jump on it.

Re: Next.js 12

#178
post #2

Hey everyone, Lee from Vercel here! Happy to answer any questions about Next.js 12. Personally, I'm extremely excited for the new Rust compiler.

I'm personally curious how the Next is able to achieve the claim of "zero client-side JavaScript" mentioned here[1] using react server components? It just doesn't seem to make sense to me, and the HN clone example and my barebones test project also clearly still load about 74.2 KB of JavaScript. Is the claim supposed to mean that the server components won't require additional JS, or maybe that they won't need to exec…

You can read more here on the original RSC announcement: https://reactjs.org/blog/2020/12/21/data-fetching-with-react.... RSC are still experimental, and as mentioned, this demo has some client-side functionality (upvotes).

Re: Next.js 12

#179

Earlier quoted context omitted.

> I love Vue, but it’s forever married to the Babel parser That's not true... I use Vue's SFC without Babel using vite.

`@vue/compiler-sfc` which powers the vite Vue 3 SFC plugin (`@vitejs/vue`) has a dependency on the `@babel/parser` package[0] That's the dependency I am speaking to here [0]: https://github.com/vuejs/vue-next/blob/master/packages/compi...

I was not aware of this, thank you.

Re: Next.js 12

#180
post #11
post #2

Hey everyone, Lee from Vercel here! Happy to answer any questions about Next.js 12. Personally, I'm extremely excited for the new Rust compiler.

How about on demand page revalidation* ? I can't find if it's part of Next 12. * https://github.com/vercel/next.js/discussions/11552#discussi...

It is not part of Next.js 12 – still working on it!
Post reply on HN