Hey everyone! I recently created a new Next.js project using the latest version. #84911
-
|
Hey everyone! I recently created a new Next.js project using the latest version, and unlike my previous projects, I didn’t get a src folder by default. Now I only have the app folder directly at the root. Is this the new default behavior in Next.js? Should I manually create a src folder if I want one, or is it okay to work directly from the root app folder? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The Of course, you can also create it yourself and place |
Beta Was this translation helpful? Give feedback.
The
srcfolder is optional. Thecreate-next-appoptions, "remember" your previous choice, so at some point you maybe choseNotosrcfolder. If you re-runcreate-next-app, you might want to go through the options carefully to make sure it creates thesrcfor you.Of course, you can also create it yourself and place
appwithin it.