Lotsss of files being changed

Should I see this many files being changed by webpack(?) whenever I make small updates to a few files? Is there something im not gitignoring properly or something
5 Replies
nexxel
nexxel2y ago
put .next in .gitignore its the folder for your dev server cache and build stuff
alexjyoung
alexjyoung2y ago
weird, i have it setup as a monorepo with the create-t3 app inside packages/giterate-app. In gitignore, I have /packages/giterate-app/.next/ but still those files show up
nexxel
nexxel2y ago
are you using turborepo? you prolly should have the gitignore inside giterate-app the gitignore in the parent should not contain nested files that have to be ignored from what i know
alexjyoung
alexjyoung2y ago
not using turborepo gah why isnt this working lmao wtf
Leonidas
Leonidas2y ago
You have to remove these files from ur git „repo“ in case you already committed them once Adding them to gitignore AFTER already commiting them has no effect- this is how git is built & intended to work git rm .next —cached https://git-scm.com/docs/git-rm This will not remove them from your git history, which I would also not recommend Anyway, here are the docs for cleaning up a git history: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
Want results from more Discord servers?
Add your server