You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/2.collections/3.sources.md
+78-9Lines changed: 78 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ source: {
80
80
81
81
### `repository`
82
82
83
-
External source representing a remote git repository URL (e.g., <https://github.com/nuxt/content>).
83
+
External source representing a remote git repository URL (e.g., <https://github.com/nuxt/content>), or an object containing Git branch / tag information, or optionally authentication
84
84
85
85
When defining an external source you must also define the `include` option.
86
86
`include` pattern is essential for the module to know which files to use for the collection.
This option allows for basic and token-based authentication for Git repositories.
107
155
108
156
::warning{icon="i-lucide-shield-alert"}
109
157
Never commit authentication tokens or credentials directly in your code. Use environment variables or other secure methods to provide these values at runtime.
110
158
::
111
159
112
-
### `authBasic`
160
+
**Example:**
113
161
114
-
Basic authentication for private repositories (e.g., Bitbucket username and password).
162
+
If you want to use basic authentication (e.g. for BitBucket repositories), you can use:
0 commit comments