App Route Folder Structure #82097
Replies: 6 comments 3 replies
-
Could you share your application tree? I am having a hard time understanding your setup. Better yet a repository, and I can help you right away. |
Beta Was this translation helpful? Give feedback.
-
Hi team
I tried my project like show so that frontend part and backend part should
clear but route os not work with that.
project-root/
├── app/
│ ├── dashboard/
│ │ └── component/
│ └── pagee/
├── src/
│ └── app/
│ └── api/
│ └── register/
│ └── route.ts
Regards,
Anjali gurjar
…On Mon, Jul 28, 2025, 1:16 PM Joseph ***@***.***> wrote:
Could you share your application tree? I am having a hard time
understanding your setup. Better yet a repository, and I can help you right
away.
—
Reply to this email directly, view it on GitHub
<#82097 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BM77IAYL4A2FLPVJZJRA7WT3KXIOPAVCNFSM6AAAAACCPAR5T2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJQGY4TQMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Could you clear me that will not work with work tree it not supported like
that structure?
…On Mon, Jul 28, 2025, 2:07 PM Joseph ***@***.***> wrote:
Maybe try using Route groups instead.
.├── app│ ├── (backend)│ │ └── api│ │ └── route.ts│ ├── favicon.ico│ ├── globals.css│ ├── layout.tsx│ └── page.tsx
—
Reply to this email directly, view it on GitHub
<#82097 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BM77IA2JHMTNUE5CGZZEBXD3KXOMTAVCNFSM6AAAAACCPAR5T2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJQG42TGMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
My work tree is not supported next js?
…On Mon, Jul 28, 2025, 2:13 PM Anjali Gurjar ***@***.***> wrote:
Could you clear me that will not work with work tree it not supported
like that structure?
On Mon, Jul 28, 2025, 2:07 PM Joseph ***@***.***> wrote:
> Maybe try using Route groups instead.
>
> .├── app│ ├── (backend)│ │ └── api│ │ └── route.ts│ ├── favicon.ico│ ├── globals.css│ ├── layout.tsx│ └── page.tsx
>
> —
> Reply to this email directly, view it on GitHub
> <#82097 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BM77IA2JHMTNUE5CGZZEBXD3KXOMTAVCNFSM6AAAAACCPAR5T2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJQG42TGMA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Thanks
…On Mon, Jul 28, 2025, 2:39 PM Joseph ***@***.***> wrote:
https://github.com/vercel/next.js/blob/8367faedd61501025299e92d43a28393c7bb50e2/packages/next/src/lib/find-pages-dir.ts#L4-L8
/app or /pages are prioritized over src/app or src/pages
—
Reply to this email directly, view it on GitHub
<#82097 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BM77IAY7DLWDCQ3VO2B2OFL3KXSGDAVCNFSM6AAAAACCPAR5T2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJQG44TCNQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I will!
…On Mon, Jul 28, 2025, 3:05 PM Joseph ***@***.***> wrote:
Please don't forget to mark as answered :)
—
Reply to this email directly, view it on GitHub
<#82097 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BM77IA3GNVZ5IRREWT23VAT3KXVEPAVCNFSM6AAAAACCPAR5T2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJQHAYTOOI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I Am. Using Folder Structure of like app name Front is App and but my Backend i Put Src/app/api/user/route.ts still not wokring ,
secondA Also i tried Src APi And folder and File Why it not Working .
Beta Was this translation helpful? Give feedback.
All reactions