Next.js Discord

Discord Forum

downgrade from app router to page router

Unanswered
Pacific thread herring posted this in #help-forum
Open in Discord
Avatar
Pacific thread herringOP
Hi all I was wondering whether anyone has ever downgraded from app router to page router? if so would it be best starting from new ? or is there a way of doing it ?

13 Replies

Avatar
wow, what's the reason for downgrading?
Avatar
Pacific thread herringOP
weird one, but we are migrating one of our services which was built on pages router to its own microservice, we started working with the app router but we came to alot of issues so we decided to revert back to pages and meet the deadline first
Avatar
I don't understand what are the issues when you use app router
that doesn't happen in the page router
Avatar
Pacific thread herringOP
api routes no including the session cookies
app routes *, and we dont use next auth so we would need to use middleware
but managers decided to go back to pages
Avatar
Asian black bear
Sounds more like you're attempting to fetch your own server and naturally cookies aren't attached for server-side calls since it's not a browser.
Downgrading to the pages router is possible but the wrong approach if you're having issues as it won't fix your underlying problem as it's just completely working around it.
Avatar
Pacific thread herringOP
I agree but we have a compliance deadline to meet
so as a quick one its to downgrade and then we will look into it
Avatar
I don't know how you used app router but the much you utlized the app router, the more difficult it would be to downgrade
I really feel like downgrading will take much more