Test Backend
The Test backend is a simple backend for testing and local development. It stores entries and assets in the browser’s local file storage, allowing you to test your Sveltia CMS setup without needing a repository.
Configuration
The configuration for the Test backend is straightforward. You only need to specify the backend name in your Sveltia CMS configuration file. No repository name or authentication details are required.
backend:
name: test-repo[backend]
name = "test-repo"{
"backend": {
"name": "test-repo"
}
}{
backend: {
name: "test-repo",
},
}How It Works
The Test backend saves entries and assets in the browser’s origin private file system (OPFS) so that changes are not discarded when the browser tab is closed or reloaded. The persistent storage support works with all modern browsers except Safari.
Since it’s not connected to any remote or local repository, the Test backend does not read existing content on initialization. Instead, it starts with an empty state, allowing you to create new entries and assets from scratch.
Workflows
The following content management workflows are supported with the Test backend: