Next.js · Junior · Question 58 of 75
Can the app/ folder live inside src/?
- ✓Correct answer: Yes -
src/appis supported; config files likenext.config.tsandpublic/stay at the project root - 2No -
app/must always be at the root - 3Yes, but only with the Pages Router
Explanation
The src folder separates application code from config files. If app/ exists at the root too, the root one wins and src/app is ignored.