Best way to share a Private GitHub repo of Next.js app to be deployed Netlify

Hi

I want to share my GitHub repository of an app with my prospective users. Now, of course I don’t want to share the Code with our users. Hence, I 'm looking for best ways by which our users can deploy the private GitHub repo to their own Netlify account. The Netlify button was a great option but I don’t want to make the repo private.

So, What can be the best options to do this? I kind of liked the UI/UX of deploying from a deploy button, sadly with private repo’s its not available.

Thanks
Atul

There’s no such solution. However, if you have access to the Netlify account of the user, you can connect your repo to a site in their account. They won’t be able to see the source code*.

  • Anyone can manipulate a build command or the publish directory or even create a build plugin to dump the repo somewhere. So this is not fool-proof, but if your user is not tech-savvy, you should be fine.
1 Like