docs: add info about self-hosted github/gitlab instances (#26501)

This commit is contained in:
Turdalin Nurassyl 2024-04-19 13:46:56 +05:00 committed by GitHub
parent c8f63684af
commit d25e6eeede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,6 +100,10 @@ export default defineNuxtConfig({
If you want to extend a private remote source, you need to add the environment variable `GIGET_AUTH=<token>` to provide a token.
::
::tip
If you want to extend a remote source from a self-hosted GitHub or GitLab instance, you need to supply its URL with the `GIGET_GITHUB_URL=<url>` or `GIGET_GITLAB_URL=<url>` environment variable - or directly configure it with [the `auth` option](https://github.com/unjs/c12#extending-config-layer-from-remote-sources) in your `nuxt.config`.
::
::note
When using git remote sources, if a layer has npm dependencies and you wish to install them, you can do so by specifying `install: true` in your layer options.