Next.js Discord

Discord Forum

Change to src/ dir

Unanswered
PunchedYou posted this in #help-forum
Open in Discord
How can I change from an root setup to a src/ folder setup?

1 Reply

Brown bear
When setting up a new Next.js app with npx create-next-app, you can choose the src/ folder structure right in the setup prompts. Just select “Yes” when it asks if you want to use the src/ directory.

If you missed it, you can still try switching by moving your folders into src dir, and changing paths?