Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netlify dont deploy specific folder or files

Tags:

netlify

I have a git a repository set up with CD on Netlify. The site itself is 4 files, but I have some other files I'd like to add to the repository that I don't want deployed. Is there a way to deploy only certain files with a deployment? Or only a specific folder?

My site only requires an http server, there's not an npm, jekyll, or hugo install. It's just the deployment of 4 files.

like image 459
Matt Busche Avatar asked Mar 05 '26 21:03

Matt Busche


1 Answers

If you put the files in a specific folder you can set the Base Directory in your Build & Deploy settings to that directory and it will ignore the other files/folders not in that directory.

like image 119
Matt Busche Avatar answered Mar 07 '26 16:03

Matt Busche



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!