Exclude node_modules from Import

Is there a way to exclude certain files from being uploaded? Like when I’m developing locally, then wanna push it to staging, I don’t want node_modules to get uploaded too.

4 Likes

Hi @ZachTheHack . Welcome to DevKinsta! I’m afraid not at this time but this makes for a great feature request. I’ve gone ahead and moved this over to the featured requests category here.

2 Likes

Our templates are using alot of gulp and other stuff to minimize SASS, it would be perfect to ignore the folder node_modules, but keep files like package.json when uploading to staging

3 Likes

I know Local by FlyWheel has this feature. Looking forward for it to be implemented in DevKinsta :slight_smile:

1 Like

+1 for this feature. It would be great if we could create a .kinstaignore file that uses .gitignore syntax for this.

3 Likes

100% agree, the ability to ignore development related files would be a very welcome feature. I like @Martin_Cao idea of using an ignore file.

2 Likes

Please fix this. To upload 150mb of node file is quite crazy if other files are a couple of mbs…