Server start always generates new .gitignore
& .vscode/settings.json
#41966
Labels
bug
Issue was opened via the bug report template.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
With the release of v13 every time a command / script is run, whether that be
dev
,build
, etc, Next.js will always generate a new.gitignore
&.vscode/settings.json
file.Not breaking in anyway but really not needed. Especially when using a monorepo, like Turborepo & I already have these files top level so Next.js is just generating extra files that are not needed.
Expected Behavior
Either not generate them at all (Though I know there is of course a reason to actually provide these files / config to users) or not generate them if it is (somehow) detected to be running inside a monorepo.
Link to reproduction
https://codesandbox.io/s/next-vscode-settings-generation-bug-c9ouvj?file=/package.json
To Reproduce
Create a new Next.js project & run either
next dev
ornext build
& it will generate a new.gitignore
if one does not already exist or append.vscode
to your existing.gitignore
& similarly either create or append to.vscode/settings.json
The text was updated successfully, but these errors were encountered: