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

30 lines
755 B
Plaintext
Raw Normal View History

2022-09-30 11:39:35 -04:00
---
2022-11-04 17:41:12 -04:00
group: Backends
title: Test Backend
weight: 60
2022-09-30 11:39:35 -04:00
---
2022-11-04 17:41:12 -04:00
- **Name**: `gitlab`
You can use the `test-repo` backend to try out Static CMS without connecting to a Git repo. With this backend, you can write and publish content normally, but any changes will disappear when you reload the page. This backend powers the Static CMS [demo site](https://static-cms-demo.netlify.app/).
2022-09-30 11:39:35 -04:00
**Note:** The `test-repo` backend can't access your local file system, nor does it connect to a Git repo, thus you won't see any existing files while using it.
To enable this backend, set your backend name to `test-repo` in your Static CMS `config` file.
2022-11-04 17:41:12 -04:00
## Example
2022-09-30 11:39:35 -04:00
<CodeTabs>
2022-09-30 11:39:35 -04:00
```yaml
backend:
2022-11-04 17:41:12 -04:00
name: test-repo
2022-09-30 11:39:35 -04:00
```
```js
backend: {
name: 'test-repo',
},
```
</CodeTabs>