The Future of Next.js Pages Router #56655
-
Hello, I've been working on completing and maintaining the products at the company I'm currently with, using the page router. I find great joy in creating products through the page router and, additionally, I'm excited about the possibility of server-side rendering (SSR). Utilizing features like getServersideProps allows for sufficient implementation of server-side actions. However, as I migrate to the app router this time, I have some concerns. Firstly, given the substantial volume of products I develop and the fact that I work with a small team, the most realistic thought that came to my mind is, "Will this page router soon be deprecated, no longer supported?" I should stick to the main point, but it seems I've added a bit of my opinion. I'm curious about the future of the page router in the current situation. Will it truly disappear or be deprecated later on? Or is there a parallel route where both app router and page router can be used? I'm interested in that future. It will help me decide whether I should work overtime or not 🤣 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
I have the same quetion and i would understand about future page router |
Beta Was this translation helpful? Give feedback.
-
I think it's really important that this question is answered even for projects migrating to app router. Realistically it's going to take me awhile to fully migrate from pages to app router. I would like to know if the long term plan is to push everyone to app router or to support both pages and app router. Even if pages router isn't actively developed moving forward, will it still get bug fixes? |
Beta Was this translation helpful? Give feedback.
-
Same concern. Any developer in Next could answer? @timneutkens @ijjk |
Beta Was this translation helpful? Give feedback.
-
I would also like to know if page routing will be kept for years to come or not. I don't like that App Router forces a node backend. |
Beta Was this translation helpful? Give feedback.
-
Bump on this question. I share similar concerns. |
Beta Was this translation helpful? Give feedback.
-
I think there are scenarios that page router is better and kinda the only option, like using the same code for web pages and mobile app with Capacitor.js. |
Beta Was this translation helpful? Give feedback.
-
👋 Hey, sorry I didn't see this discussion until now! In short, we're committed to supporting the Pages Router for many years in the future. And then maybe longer even. We believe backwards compatibility is incredibly important, which is why the same features from Next.js 1.0 work in Next.js 14 today (through the Pages Router). You don't have to move to the App Router. We believe it has features that are beneficial, of course, but all new things take time to mature and bring the community along for the ride. If you're not wanting to try things out just yet, no worries at all. Further, we're still making Next.js improvements that apply to both routers, like adding Turbopack (through Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@leerob, I have faith in Vercel's ability to maintain backward compatibility. I've been building on top of Next.js for the past 4 years, and while the advancements are impressive, not all apps require the app router or React Server Components (RSC). Many developers, including myself, don't feel the need for server-side rendering except for SEO pages. Mixing frontend and backend logic is still crucial for many use cases. While some see a return to a PHP-like environment as beneficial, others, like me, do not. For the first time in years, I'm consistently exploring alternatives to Next.js. The concept of server-side rendering in 2024 feels outdated given the advancements in average internet speeds and hardware capabilities of modern devices. If this were 2014, I would be fully onboard with server-side rendering. While RSC makes sense for SEO-heavy consumer platforms like e-commerce and marketplaces, it doesn't seem necessary for SaaS or business applications. I hope the Vercel team gives equal importance to both the page router and the app router. The page router should not be treated as a second-class citizen, with significant features being rolled out only for the app router. Thanks. |
Beta Was this translation helpful? Give feedback.
👋 Hey, sorry I didn't see this discussion until now!
In short, we're committed to supporting the Pages Router for many years in the future. And then maybe longer even. We believe backwards compatibility is incredibly important, which is why the same features from Next.js 1.0 work in Next.js 14 today (through the Pages Router).
You don't have to move to the App Router. We believe it has features that are beneficial, of course, but all new things take time to mature and bring the community along for the ride. If you're not wanting to try things out just yet, no worries at all.
Further, we're still making Next.js improvements that apply to both routers, like adding Turbopack (through
next de…