Live data from Hacker News

Next.js 12

nextjs.org

101–110 of 293 posts

Re: Next.js 12

#101
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.

When can we expect the docs to be updated?

They are now updated! Sorry for that. The NPM release took a bit longer than expected.

Re: Next.js 12

#102
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…

We are finding that Next.js + Nest.JS to be a really strong combo so far.

Re: Next.js 12

#103
post #97

Earlier quoted context omitted.

Keeping in mind that these are generally build-time/server-side dependencies, not client-side dependencies, so size-on-disk isn't a very relevant metric

That seems beside OP's point. They are speaking of the potential bugs and security vulnerabilities all that code might/probably has, given track records.

They mentioned "weighing in at 504mb", so clarification seemed warranted

Re: Next.js 12

#104
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 think because the answer here is using Next.js with hosted backend solutions like Firebase, Supabase, Pusher, etc.

Re: Next.js 12

#105
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.

Can we still use obscure babel macros with the new Rust compiler? And if so, what do you think the future will look like for babel macros in a future where most build tooling is written in languages like rust/go?

We're working on making it easier for developers to write Rust plugins to handle their own transformations.

Re: Next.js 12

#106
The production quality for both this and Jamstack Conf a couple weeks ago are very high. I really dig the retro graphics and music!

Re: Next.js 12

#107

The install footprint from npm is 302 packages weighing in at 504mb. It includes a lot of superfluous debris, with packages containing single functions like "is-string" and multiple polyfills for functions like object.assign. That's a very large attack surface considering the poor security practices in the npm ecosystem[0] and the growing frequency of attacks on transitive dependencies[1]. [0]: https://www.bleepingco…

I wonder why they don't replace these simple packages like `is-string` with Lodash, which has all these functions and more. Bundle size isn't a problem: they're ES modules, so you can do something like `lodash/isString` and import only what you need. Seems like that would cut down on a lot of dependencies. I'm curious why the ecosystem hasn't adopted this or a similar approach.

> I wonder why they don't replace these simple packages like `is-string` with Lodash...

As someone who maintains a few dozen packages (public and otherwise), lodash has wasted more of my time than any other - due to its frequent security issues. It was almost always lodash, and I would have to update a dozen packages everytime.

Things may have improved; I no longer use lodash anywhere.

Re: Next.js 12

#108
post #33
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.

Are there any plans to address Bazel compatibility? I understand that the Next philosophy is very monolithic but so far I’m having trouble getting it to play nice with build tooling.

We may investigate this more in the future, but nothing planned currently.

Re: Next.js 12

#109
post #16
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.

Also excited about the Rust compiler! Apologies if this is far from reality, but by looking at recent commits in GH[1] it looks as though this has been rushed for a v12 release, so I was wondering how much of internal testing has this been going through before pushing it to the broader public. [1] https://github.com/vercel/next.js/commits/canary

We've been testing SWC for months now, both with early community members on canary releases and with Vercel customers. Lots of the rushing at the end was for minification, which is opt-in because of this. But compilation with Rust (replacing Babel) is stable (which is why it's on by default).

Re: Next.js 12

#110
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…

Google App Engine?
Post reply on HN