DEV Community

Cover image for Why is Next.js so slow for developers?

Why is Next.js so slow for developers?

Christian Mbah on May 07, 2025

I've been building apps with Next.js for months now. Its built-in routing, SEO support, and other benefits made it a no-brainer over plain React wh...
Collapse
 
vicradon profile image
Osinachi Chukwujama • Edited

I don't think offloading your Next.js API routes to some service is the solution. What if Next.js had a mode where you select the sort of task you are doing and it only compiles for such task. Like if you were building with API routes, it compiles without considering API routes.

Collapse
 
chrismbah profile image
Christian Mbah

That’s an interesting thought! If Next.js had a mode that allowed developers to select the specific task they're working on (e.g., frontend-only, API routes, SSR, etc.), it could definitely improve development speed.

Collapse
 
nyomansunima profile image
Nyoman Sunima

Next.js starts to kill my laptop. When you noticed even when building a simple landing page, it would take more than 1.2GB of your memory in local development. And experiences a lot of this before. My laptop starts heating up and lagging.

Then I found React Router v7 (Framework mode) (Remix). This is not that full package of Next.js, but it does the job. Also, it's using Vite behind it.

Anyway, I use an MBA 2020 M1 with 8 GB of memory.

Collapse
 
chrismbah profile image
Christian Mbah

Interesting, I'll definitely look into that

Collapse
 
chivicks_hazard profile image
Victor Chigbo

Basically summarising everything, NextJS is good for building websites but has a very bad developer experience.

Thanks for sharing this with us, Chris 😊

Collapse
 
chrismbah profile image
Christian Mbah

Exactly!
Your'e welcome Vic

Collapse
 
codebyulad profile image
Mbah Favour

Love this❤️❤️❤️

Collapse
 
chrismbah profile image
Christian Mbah

Thank you!!

Collapse
 
eze_ernest_62786560c8b5f3 profile image
eze ernest

I just remembered our call days ago when nextjs was dealing with me. Thanks for this information

Collapse
 
chrismbah profile image
Christian Mbah

Yeah, our call kind of inspired this post tbh

Collapse
 
jackytank profile image
jackytank

Try React Router V7 guys, but in my opinion the RRv7 docs so horrible

Collapse
 
vectorware profile image
Akalonu Chukwuduzie Blaise

Making use of server actions to reduce server side logic also help improve performance in Next.js.
Especially if its a sort of large production codebase, I use this currently