Manage product content and assets with auto sync
This plugin requires:
npm install @devx-commerce/strapi @strapi/client# oryarn add @devx-commerce/strapi @strapi/client
const { defineConfig } = require("@medusajs/medusa"); // or "@medusajs/framework/utils"module.exports = defineConfig({// ... other configplugins: [// ... other plugins,{resolve: "@devx-commerce/strapi",options: {base_url: process.env.STRAPI_URL,api_key: process.env.STRAPI_API_KEY,},},],});
npx create-strapi-app@latest my-strapi-cms
cd my-strapi-cmsnpm run develop
Create an API token in Strapi:
Create Product and Variant collections in Strapi:
Configure environment variables for your Medusa backend:
After installation and setup, the plugin will automatically:
Once the plugin is set up, you can use Strapi's admin panel to add rich content to your products and use the Strapi API to fetch this content for your storefront.
Example of fetching product content from Medusa (with Strapi fields):
// In your storefrontasync function getProductContent(productId) {const response = await fetch(`${MEDUSA_BASE_URL}/store/products/${productId}?fields=cms_product.*`,{headers: {"x-publishable-api-key": STOREFRONT_PUBLISHABLE_API_KEY,},},);const data = await response.json();return data.data[0];}