@mashroom-content/mashroom-content-provider-strapi
v1.0.4
Published
Mashroom Content Internal Storage Provider
Readme
Mashroom Content Strapi Provider
Plugin for Mashroom Server, a Microfrontend Integration Platform. Part of the Mashroom Content extension.
This plugin adds a content provider which uses the Strapi Headless CMS as backend.
Only tested with Strapi 4.x. Supports internationalization but no versioning and also not the draft mechanism.
Usage
If node_modules/@mashroom is configured as plugin path just add @mashroom-content/mashroom-content-provider-strapi as dependency.
You can override the default config in your Mashroom config file like this:
{
"plugins": {
"Mashroom Content Strapi Provider": {
"strapiVersion": 5,
"strapiUrl": "http://localhost:1337",
"apiToken": "xxxxxxx"
}
}
}- strapiVersion: The Strapi version, possible values: 5, 4 (Default: 5)
- strapiUrl: Strapi server base URL
- apiToken: Strapi API token
Preparing the Strapi instance
Your Strapi instance needs at least an activated Internationalization Plugin with the same languages as configured in Mashroom
Also, if you want to use the Mashroom Content Markdown Renderer App you need to create a content type markdown with two properties: title (string), content (rich text).
