Hey everyone! I recently created a new Next.js project using the latest version
Answered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
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?
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?
Answered by alfonsüs ardani
"Is this the new default behavior in Next.js?"
No clue. it usually doesn't matter since you can just re-create it and select the option with src
"Should I manually create a src folder if I want one, or is it okay to work directly from the root app folder?"
Its okay to work directly from the root app folder.
You can also manually create a src folder but dont forget to move the old one to src.
Make sure there is only one /app folder because this is what trips most people
No clue. it usually doesn't matter since you can just re-create it and select the option with src
"Should I manually create a src folder if I want one, or is it okay to work directly from the root app folder?"
Its okay to work directly from the root app folder.
You can also manually create a src folder but dont forget to move the old one to src.
Make sure there is only one /app folder because this is what trips most people
2 Replies
@Asiatic Lion 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?
"Is this the new default behavior in Next.js?"
No clue. it usually doesn't matter since you can just re-create it and select the option with src
"Should I manually create a src folder if I want one, or is it okay to work directly from the root app folder?"
Its okay to work directly from the root app folder.
You can also manually create a src folder but dont forget to move the old one to src.
Make sure there is only one /app folder because this is what trips most people
No clue. it usually doesn't matter since you can just re-create it and select the option with src
"Should I manually create a src folder if I want one, or is it okay to work directly from the root app folder?"
Its okay to work directly from the root app folder.
You can also manually create a src folder but dont forget to move the old one to src.
Make sure there is only one /app folder because this is what trips most people
Answer
Asiatic LionOP
Thank you alfonsus ardani