Looking at Build environment variables | Netlify Docs, it says that the REPOSITORY_URL env var will always be available during build time – however, in one of my cases I see that it is blank.
Is there any documentation about this env var specifically? Or if it could be set to a value that is not the HTTP address of the git repo?
Hi, @jasonb, and welcome to the Netlify community site. Would you please link us to the deploy where the REPOSITORY_URL environment variable is unavailable?
Regarding changing the URL to something other than the HTTP URL for the site, we always use the HTTP URL. You can change the location of the repo to a privately hosted Git server with manual linking:
If it is a self-hosted GitLab instance, this might be helpful:
Please let us know if there are other questions about this.