GitLab content store adaptor for Indiekit.
npm i @indiekit/store-gitlab
Add @indiekit/store-gitlab
to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/store-gitlab"],
"@indiekit/store-gitlab": {
"user": "username",
"repo": "reponame"
}
}
Option | Type | Description |
---|---|---|
instance |
string |
GitLab instance URL. Optional, defaults to https://gitlab.com . |
projectId |
string |
GitLab project ID. Required (if user and repo not provided). |
user |
string |
Your GitLab username. Required (if projectId not provided). |
repo |
string |
The name of your GitLab repository. Required (if projectId not provided). |
branch |
string |
The branch files will be saved to. Optional, defaults to main . |
token |
string |
A GitLab access token. Required, defaults to process.env.GITLAB_TOKEN . |