next-approute
Unanswered
Eastern yellowjacket posted this in #help-forum
Eastern yellowjacketOP
ROUTERGROUP issue in prod build deployment to linux system
We have folder structure as src/app/(base)/(sub)/home1/page.js and deployed same codebase with prod mode in linux machine.
When we tried to access "/home1" route, somehow route path is not resolved as we got error as "_next/static/chunks/app/(base)/(sub)/home1/page-604f8afc444a0d4a.js net::ERR_ABORTED 403 (Forbidden)"
we observed this error after we introduced ROUTERGROUP which is inside another ROUTERGROUP folder
We also did verify one more scenaio where we have ROUTERGROUP inside [locale] in this case also we got the same error as forbidden
ROUTERGROUP is workng only if ther is only one level not in multilevel scenaion in linux system.
however it did work fine in local windows system with prod build,
Can someone please look into this issue and provide the solution
We have folder structure as src/app/(base)/(sub)/home1/page.js and deployed same codebase with prod mode in linux machine.
When we tried to access "/home1" route, somehow route path is not resolved as we got error as "_next/static/chunks/app/(base)/(sub)/home1/page-604f8afc444a0d4a.js net::ERR_ABORTED 403 (Forbidden)"
we observed this error after we introduced ROUTERGROUP which is inside another ROUTERGROUP folder
We also did verify one more scenaio where we have ROUTERGROUP inside [locale] in this case also we got the same error as forbidden
ROUTERGROUP is workng only if ther is only one level not in multilevel scenaion in linux system.
however it did work fine in local windows system with prod build,
Can someone please look into this issue and provide the solution
9 Replies
Eastern yellowjacketOP
Scenario1: Nested ROUTERGROUPS, as shown below we have routergroup (sub) inside (base)
senario2: ROTERGROUP inside [locale]
Eastern yellowjacketOP
When we try to naviage to "/hometest" or "/hom2" we got error and page doesnot get rendered
however same folder structure worked fine in local windows system with prodbuild
@Eastern yellowjacket When we try to naviage to "/hometest" or "/hom2" we got error and page doesnot get rendered
Double-striped Thick-knee
where are you hosting it
Eastern yellowjacketOP
azure cloud => linux vm