TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Next.js 12

451 pointsby jacobwgover 3 years ago

24 comments

dmixover 3 years ago
The big innovation here seems to be <a href="https:&#x2F;&#x2F;swc.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;swc.rs&#x2F;</a><p>If it works as advertised this is going to be great for a ton of JS&#x2F;TS projects. Particularly having a 20x typescript compiler boost when running large test suites would be great. Maintaining 5-8 different babel related projects in packages.json is also annoying and often buggy.<p>Looking forward to see where else this gets adopted and it&#x27;s stability.
评论 #29004656 未加载
评论 #29002605 未加载
评论 #29011232 未加载
评论 #29003335 未加载
评论 #29006012 未加载
jekudeover 3 years ago
If Next.js + Vercel is the leader of the production-ready frontend-as-a-service space, why hasn&#x27;t a similar leader emerged in the backend-as-a-service space?<p>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 for a Vercel-for-backend to emerge.<p>Does anyone know of an existing open source framework + hosted cloud platform that is a one-stop-shop for writing a production-ready backend in the vein of Next.js + Vercel?
评论 #29004478 未加载
评论 #29003567 未加载
评论 #29003708 未加载
评论 #29002997 未加载
评论 #29003374 未加载
评论 #29004610 未加载
评论 #29018345 未加载
评论 #29007822 未加载
评论 #29003235 未加载
评论 #29003092 未加载
评论 #29003398 未加载
评论 #29005131 未加载
评论 #29004507 未加载
评论 #29003233 未加载
评论 #29003371 未加载
评论 #29003058 未加载
评论 #29007945 未加载
评论 #29005072 未加载
评论 #29009963 未加载
评论 #29007406 未加载
评论 #29003421 未加载
评论 #29004215 未加载
评论 #29006384 未加载
评论 #29009769 未加载
评论 #29007820 未加载
评论 #29006423 未加载
评论 #29003486 未加载
leerobover 3 years ago
Hey everyone, Lee from Vercel here! Happy to answer any questions about Next.js 12. Personally, I&#x27;m extremely excited for the new Rust compiler.
评论 #29003520 未加载
评论 #29002575 未加载
评论 #29003978 未加载
评论 #29002475 未加载
评论 #29003855 未加载
评论 #29002606 未加载
评论 #29002802 未加载
评论 #29003143 未加载
评论 #29003067 未加载
评论 #29002629 未加载
评论 #29002816 未加载
评论 #29002881 未加载
评论 #29002481 未加载
评论 #29006462 未加载
评论 #29002896 未加载
评论 #29002485 未加载
midrusover 3 years ago
I&#x27;m going to be downvoted to hell for this... but the more I see the level of complexity and amount of engineering going into this, the more I miss Rails and how simple things are there, given most of us are just building CRUD apps anyways.
评论 #29003948 未加载
评论 #29005103 未加载
评论 #29004649 未加载
评论 #29006545 未加载
评论 #29004915 未加载
评论 #29163479 未加载
评论 #29007089 未加载
CGamesPlayover 3 years ago
I don&#x27;t want to hate on Next, because I do like using the framework, but a new major version every 5 months for the lifetime of the project? How does anybody actually develop an application when you have to spend so much time keeping your framework up to date?
评论 #29003728 未加载
评论 #29003668 未加载
评论 #29003599 未加载
评论 #29003305 未加载
capablewebover 3 years ago
Nice, a completely new attack-vector: <a href="https:&#x2F;&#x2F;nextjs.org&#x2F;blog&#x2F;next-12#url-imports" rel="nofollow">https:&#x2F;&#x2F;nextjs.org&#x2F;blog&#x2F;next-12#url-imports</a> Documentation still not there, so can&#x27;t check if they actually compare any checksums or anything.<p>They also introduce their own `next.lock` which supposedly new tooling have to built around as well. Versioning management? What, we don&#x27;t need that for where we&#x27;re going.<p>Finally it&#x27;s fun to see it ending with:<p>&gt; We set out to build a zero-configuration React framework that simplifies your developer experience.<p>And if you read the beginning, you&#x27;d see:<p>&gt; Middleware enables you to use code over configuration<p>I guess replacing configuration with code is one way of achieving &quot;zero-configuration&quot;.<p>Feels like all tooling starts out with &quot;We&#x27;re simple, no config or code needed!&quot; and eventually ends up so extensible that it&#x27;s hard to figure out how to even use it. Then another competitor appears and shouts &quot;We&#x27;re so simple compared to X, no config or code needed!&quot;, and the cycle repeats.
评论 #29003089 未加载
评论 #29002610 未加载
评论 #29003152 未加载
评论 #29002500 未加载
评论 #29002665 未加载
评论 #29002764 未加载
评论 #29003173 未加载
no_wizardover 3 years ago
This is really amazing, is the end result here that they are ultimately opting out of webpack in favor of SWC? It also compiles modules and such. Will have to take a look at the underlying infrastructure here!<p>Interestingly I think that’s the major win of SWC over esbuild: you get a Babel like plug-in ecosystem for AST transformations and such. Downside: there currently isn’t a way to run asynchronous transforms, much like you can’t with Babel (easily anyway without some subprocess hacks)<p>I love Vue, but it’s forever married to the Babel parser unless Evan moves over to using SWC for compiling SFCs, which would be awesome but he has signaled multiple times he doesn’t see the Vue Compiler ever being rust based, so it would be reliant on the Vue core team (though I think this is mainly his work) porting the SFC compiler to using SWC underneath.<p>JSX frameworks won’t have this limitation and can get this massive speed gains and energy without such work. I could see Stencil and SolidJS adapting easily here<p>Maybe JSX tools just needs some re thinking to get the same SFC experience
评论 #29004014 未加载
评论 #29003797 未加载
评论 #29004073 未加载
评论 #29003798 未加载
评论 #29003967 未加载
评论 #29005007 未加载
segphaultover 3 years ago
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 &quot;is-string&quot; and multiple polyfills for functions like object.assign. That&#x27;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].<p>[0]: <a href="https:&#x2F;&#x2F;www.bleepingcomputer.com&#x2F;news&#x2F;security&#x2F;52-percent-of-all-javascript-npm-packages-could-have-been-hacked-via-weak-credentials&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bleepingcomputer.com&#x2F;news&#x2F;security&#x2F;52-percent-of...</a> [1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28962168" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28962168</a>
评论 #29003223 未加载
评论 #29003114 未加载
评论 #29002942 未加载
评论 #29002962 未加载
评论 #29013404 未加载
评论 #29003375 未加载
r6203over 3 years ago
I don&#x27;t get it. It&#x27;s still not possible to use next&#x2F;image (without some fancy loader or 3rd party service) when exporting a SSG build.<p>Are people really not using responsive images when exporting a static site? Seems quite ridiculous to rely on some 3rd party service for image optimization when the images could be generated locally when exporting the site...
评论 #29002960 未加载
评论 #29002727 未加载
评论 #29002975 未加载
评论 #29003700 未加载
评论 #29002667 未加载
评论 #29003195 未加载
nickosmarkover 3 years ago
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 &quot;biggest&quot; release just introduced middleware and html rendering with zero client-side js !<p>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 ?<p>[0] <a href="https:&#x2F;&#x2F;symfony.com&#x2F;doc&#x2F;current&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;symfony.com&#x2F;doc&#x2F;current&#x2F;index.html</a>
评论 #29004460 未加载
评论 #29004720 未加载
评论 #29004421 未加载
评论 #29007190 未加载
ramesh31over 3 years ago
&gt;Compilation using Rust is 17x faster than Babel and enabled by default using Next.js 12, replacing transforming JavaScript and TypeScript files.<p>I&#x27;ve never, ever felt constrained by Babel performance. Even in massive 100k+ LOC codebases. I <i>have</i>, however, been burned over and over again by introducing native binaries into the build process. We specifically moved off of node-sass to using PostCSS for this very reason.<p>I&#x27;m not completely sure how these Rust binaries will work, but if they are in any way less universal than Node, it&#x27;s going to cause problems across dev and CI build environments.
评论 #29003214 未加载
评论 #29003313 未加载
评论 #29004212 未加载
评论 #29003346 未加载
brilloutover 3 years ago
Shameless plug: <a href="https:&#x2F;&#x2F;vite-plugin-ssr.com" rel="nofollow">https:&#x2F;&#x2F;vite-plugin-ssr.com</a> a do-one-thing-do-it-well alternative to Next.js which is feature-complete &amp; stable (no breaking changes in the foreseeable future).
评论 #29005973 未加载
sandGorgonover 3 years ago
&gt;<i>Next.js now enables you to do data fetching at the component level, all expressed as JSX. By using React Server components, we can simplify things. Special functions like getServerSideProps or getStaticProps are no longer needed. This aligns with the React Hooks model of colocating data fetching with your components.</i><p>Do you see getServerSideProps and getStaticProps going away in the next release or two ?
评论 #29024177 未加载
评论 #29007639 未加载
snarkypixelover 3 years ago
I was hoping for hosted postgreSQL database support as part of Next deployment.
评论 #29003336 未加载
cusxover 3 years ago
Seems like Rust is eating JavaScript (in a good way).
评论 #29012810 未加载
benatkinover 3 years ago
The production quality for both this and Jamstack Conf a couple weeks ago are very high. I really dig the retro graphics and music!
CosmicShadowover 3 years ago
Some exciting stuff for sure, but the most exciting stuff we still have to wait on as it&#x27;s all experimental until React is ready.<p>Anything that speeds things up and gives us more control is great though.
revskillover 3 years ago
With server component, i really think next.js hybrid app with cordova will achieve high performance even better than native app (like react-native).
评论 #29002911 未加载
yewenjieover 3 years ago
I like that they have finally provided a fast Webpack alternative.
评论 #29002920 未加载
评论 #29002933 未加载
kyleeeover 3 years ago
This is great but im really looking forward to nextjs 13
评论 #29003236 未加载
ilovecachingover 3 years ago
Seems like a ton of tools&#x2F;dependancies&#x2F;frameworks to do something relatively simple. What is the benefit of this over using Hugo with Go templates?
评论 #29002593 未加载
评论 #29002576 未加载
评论 #29003893 未加载
评论 #29006484 未加载
评论 #29003322 未加载
bowlingxover 3 years ago
Congrats! This is a very exciting release!
cyberpsybinover 3 years ago
Select your enlightened HN comment from below options<p>JS bad; SPA bad; React bad; Next bad
评论 #29007407 未加载
mouzoguover 3 years ago
This is nice as a more opinionated version of create-react-app. helps solve some of the problem with the fragmented react ecosystem.<p>It does seem a bit complex though, perhaps something you would use on large projects only.