static-cms/website/content/docs/bitbucket-backend.mdx

32 lines
820 B
Plaintext
Raw Normal View History

2022-09-30 11:39:35 -04:00
---
2022-11-04 17:41:12 -04:00
group: Backends
2022-09-30 11:39:35 -04:00
title: Bitbucket
2022-11-04 17:41:12 -04:00
weight: 30
2022-09-30 11:39:35 -04:00
---
2022-11-04 17:41:12 -04:00
- **Name**: `bitbucket`
2022-09-30 11:39:35 -04:00
For repositories stored on Bitbucket, the `bitbucket` backend allows CMS users to log in directly with their Bitbucket account. Note that all users must have write access to your content repository for this to work.
## Authentication
To enable Bitbucket authentication it:
2022-09-30 11:39:35 -04:00
1. Follow the authentication provider setup steps in the [Netlify docs](https://www.netlify.com/docs/authentication-providers/#using-an-authentication-provider).
2. Add the following lines to your Static CMS `config` file:
2022-09-30 11:39:35 -04:00
<CodeTabs>
2022-11-04 17:41:12 -04:00
```yaml
backend:
name: bitbucket
repo: owner-name/repo-name # Path to your Bitbucket repository
```
```js
backend: {
name: 'bitbucket',
repo: 'owner-name/repo-name', // Path to your Bitbucket repository
},
```
</CodeTabs>