.gitignore for NextJS Project

Hello
I started my first nextJS project and i would like know what i have to put in .gitIgnore for push it on git.
Thanks

Off top of my head

node_modules/
.next/
.swc/
.*.env

There’ll be a few more, search GitHub for examples (iirc Salesforce I think have a repo of maintained gitignores) and adjust to take into account own your workspace

1 Like

Thanks
in reality NextJS give the gitignore when we download the npm

Ah great, I did wonder why it hadn’t been automatically generated

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.