Next.js Discord

Discord Forum

Migrating to src folder

Answered
Havana posted this in #help-forum
Open in Discord
Avatar
HavanaOP
Hi! I recently started a new create-next-app project, and I choose to not use the src folder, however I regret this after barely having started. Is it as pain free as it seems to migrate to the src folder? I.e., dumping needed folders into a new folder called "src" and updating any imports. Or is there some internal stuff setup by create-next-app that makes it bad to do it this way?
Answered by joulev
It is very straightforward. Just need to create the folder and copy your files in there and update the imports if needed
View full answer

2 Replies

Avatar
It is very straightforward. Just need to create the folder and copy your files in there and update the imports if needed
Answer
Avatar
HavanaOP
Great, thank you so much 🙂 And for the quick response!