downgrade from app router to page router
Unanswered
Pacific thread herring posted this in #help-forum
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
wow, what's the reason for downgrading?
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
I don't understand what are the issues when you use app router
that doesn't happen in the page router
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
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.
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
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