#next-approute

10 messages · Page 1 of 1 (latest)

north spire
#

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

spare trellisBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

jagged nest
north spire
#

Scenario1: Nested ROUTERGROUPS, as shown below we have routergroup (sub) inside (base)

#

senario2: ROTERGROUP inside [locale]

#

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