News for hackers. Stuff that matters.
Re:We moved Railway's frontend off Next.js. Builds went from... by UserMark on Wednesday April 08, 2026 @04:30AM (#47687100)
I have a Nextjs heavy app which takes around 7 minutes currently. But I've been thinking of moving away from next for a long time now. TanStack seems to be a good fit. This gives me a bit more confidence in just doing it.
Re:We moved Railway's frontend off Next.js. Builds went from... by cryptonym on Wednesday April 08, 2026 @04:58AM (#47687326)
Is server-rendered HTML that bad for 2026 web or is everyone building complex apps?

Many of my customers insists on using Next.js or similar but when I browse their website I don't get the point. They are downloading and executing megabytes of JS while in-page interactions tends to be limited to few basic stuff. Never seen one of their project requiring offline mode. Maybe that's being able to easily replace a [FRAMEWORK] dev with another.

Re:We moved Railway's frontend off Next.js. Builds went from... by sosodev on Wednesday April 08, 2026 @01:54PM (#47693821)
I think the unfortunate truth is the simplest. Web development has long been detached from rationality. People are drawn to complexity like moths to a flame.
Re:We moved Railway's frontend off Next.js. Builds went from... by mschuster91 on Wednesday April 08, 2026 @05:25PM (#47696488)
> People are drawn to complexity like moths to a flame.

Not to complexity, but to abstraction. The more something is abstracted away, the more fungible "developers" become, to the eventual tune of Claude Code.

No one cares that trying to debug a modern application is as hellish as its performance, the KPI that executives go for is employment budget.

Re:We moved Railway's frontend off Next.js. Builds went from... by sosodev on Wednesday April 08, 2026 @05:51PM (#47696744)
I don't know if Next.js, TanStack, etc are more abstract than Rails, Django, etc. They're undoubtedly more complex though. I also find it hard to believe that it's some sort of conspiracy by management to make developers more fungible. I've seen plenty of developers choose complexity with no outside pressure.
Re:We moved Railway's frontend off Next.js. Builds went from... by gherkinnn on Thursday April 09, 2026 @12:13AM (#47699194)
Next certainly feels more complex than Laravel or Rails while only providing most of the view layer and a client-server protocol based on React.

You're still left alone with i18n, auth, and pretty much anything to do with the backend, all of which the Rails of this world have you covered.

Re:We moved Railway's frontend off Next.js. Builds went from... by cryptonym on Thursday April 09, 2026 @03:18AM (#47700329)
It might be really efficient when you "vibe" and don't know exactly what you want.

On serious projects, it feels like even Claude Code could be more efficient with simple technologies, providing near-instant build and debug. With reduced abstractions and output looking like input, it can better understand how to fix things rather than trying to guess how to manipulate framework state or injecting hacks.

Re:We moved Railway's frontend off Next.js. Builds went from... by pjmlp on Wednesday April 08, 2026 @02:49PM (#47694540)
It is fashionable, and Vercel has made a chain of partners that make Next.js/React the only official option to extend SaaS products.
Re:We moved Railway's frontend off Next.js. Builds went from... by Kelteseth on Wednesday April 08, 2026 @04:42AM (#47687188)
As a cpp developer I had to chuckle there. And I thought our compile times were bad.
Re:We moved Railway's frontend off Next.js. Builds went from... by abustamam on Wednesday April 08, 2026 @04:51AM (#47687257)
I've been pretty happy with TanStack start for a medium-sized project. I would not know how its build time would compare to Next, but our similarly sized Remix (sorry, React router v7) app takes longer to build.

TanStack just has a nicer mental model overall and works great with TanStack query for cache I validation and stuff like that.

Remix was promising but there was so much ceremony in registering API routes and stuff. Tanstack just lets you define server functions arbitrarily with no ceremony.

Might be worth a spike and some tokens to ask Claude Code to migrate and test the build time and ergonomics.

Re:We moved Railway's frontend off Next.js. Builds went from... by UserMark on Wednesday April 08, 2026 @07:20AM (#47688669)
I've been on the remix on a previous project, I have to say that Remix was even worse. But that's probably of the setup with vite etc not being correctly done.
Re:We moved Railway's frontend off Next.js. Builds went from... by wilson090 on Wednesday April 08, 2026 @04:59AM (#47687335)
Are you on turbopack? It's available on Next 16 and just took our build times down from 6 minutes to 2 minutes
Re:We moved Railway's frontend off Next.js. Builds went from... by cbovis on Wednesday April 08, 2026 @05:56AM (#47687892)
Yep this is what's often misunderstood.

We also recently cut our build times in half moving from Webpack to Turbopack on production builds after jumping to NextJS 16. We'd already been using Turbopack in development for a while which yielded massive DX improvements related to performance. Production build times will drop further once Turbopack production build caching is stable.

Webpack -> Turbopack is the smart initial migration. I'd bet Railway went straight from Webpack -> Vite not realising that their real gains sat with the build tooling, not NextJS vs Tanstack.

Re:We moved Railway's frontend off Next.js. Builds went from... by UserMark on Wednesday April 08, 2026 @07:19AM (#47688659)
Yes I'm on turbopack and running the latest version of Nextjs.
Re:We moved Railway's frontend off Next.js. Builds went from... by nomel on Wednesday April 08, 2026 @05:00AM (#47687350)
I made two serious attempts to get into front end web development, around 5 years apart. Both times I started with the most popular framework. Both times the most popular framework was something different before I even finished the project.

Looks like maybe things haven't changed much?

Re:We moved Railway's frontend off Next.js. Builds went from... by Eric_WVGG on Wednesday April 08, 2026 @03:59PM (#47695513)
I recently switched from NextJS — where every one of the dozens of projects I built would have 7-8 minute deployment times, regardless of hosts — to React Router, and saw my deployment times drop to 1-2 minutes.

Aside from some difficulty with mastering environment variables, I’ve been delighted with the change and will probably not look back.

Re:We moved Railway's frontend off Next.js. Builds went from... by twohaibei on Thursday April 09, 2026 @04:46AM (#47700906)
If you consider that, you might also want to take a look at Astro.js