Next.js Discord

Discord Forum

Nested routing in Page Routing

Unanswered
Colombian fino hound posted this in #help-forum
Open in Discord
Avatar
Colombian fino houndOP
I have multi level routes and every route has grouped layout. Route: variant/[custom] , variant2/[custom2], variant2/[custom2]/[custom3].
Now every route has its own server side code and for common layout multi routes like variant2/value and variant2/value/2 I am using router.push() assuming shallow: false by default it should call server side code

Locally everything is working fine. But once deployed, when am change routes to something else its failing to call server and only renders client side code. Any idea?

Adding screenshot for the routing and layout code

3 Replies

Avatar
Colombian fino houndOP
Image
Avatar
Colombian fino houndOP
@Oriental can anyone help?
Avatar
Please don't ping the moderator role to receive coding help