Saturday, June 1, 2024
 Popular · Latest · Hot · Upcoming
192
rated 0 times [  194] [ 2]  / answers: 1 / hits: 7656  / 2 Years ago, thu, march 31, 2022, 12:00:00

I run my nextjs project by


npm run dev

NOT


npm run build

but it automatically create the .next folder. and after I tried to delete that folder but it automatically generated again.
why??


I don't expect to generate the .next folder by this command:


npm run dev

More From » next.js

 Answers
2

You are running your project with


npm run dev

Once the project is launched, .next folder will be created to store page cache and some features to speed up your project. While project running, some files will be added to .next folder during your dev usage. If you delete you .next folder during usage, you will have errors on the pages - you should restart your npm run dev


[#233] Tuesday, March 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ariel

Total Points: 523
Total Questions: 111
Total Answers: 100

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
;