APP Router - ROUTERGROUP issue in prod build deployment to linux system #68222
Labels
bug
Issue was opened via the bug report template.
invalid link
The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
Runtime
Related to Node.js or Edge Runtime with Next.js.
Link to the code that reproduces this issue
https://github.com/vercel/next.js/blob/v14.2.1/package.json
To Reproduce
We have folder structure as app/[locale]/(base)/home/page.jsx and same deployed in linux machine.
When we tried to access "/home" route somehow route path is not resolved we got error as "_next/static/chunks/app/%5Blocale%5D/(base)/layout.js net::ERR_ABORTED 403 (Forbidden)"
we observed this error after we introduced ROUTERGROUP which is inside [locale]
We also did verify one more scenaio where we have ROUTERGROUP inside another ROUTERGROUP 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
Current vs. Expected behavior
Current behaviour:
Error is thrown when we deploy prod build in linux system as "_next/static/chunks/app/%5Blocale%5D/(base)/layout.js net::ERR_ABORTED 403 (Forbidden)" in below scenario
However both scenario worked fine in local windows system
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
Other (Deployed)
Additional context
Both mentioned scenario worked fine in local windows system with prod build
The text was updated successfully, but these errors were encountered: