Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,28 @@ The plugin requires a configuration object. You must provide a `host` (publicly

### Example (Memory Engine)
```js
// Strapi v4
module.exports = {
'shopify': {
host: 'https://your-strapi-instance.com',
encryptionKey: 'random 32 chars string',
engine: 'memory',
},
};

// Strapi v5 /config/plugins.ts
shopify: {
config: {
host: 'https://your-strapi-instance.com',
encryptionKey: 'random 32 chars string',
engine: 'memory',
}
}
```

### Example (Redis Engine)
```js
// Strapi v4
module.exports = {
'shopify': {
host: 'https://your-strapi-instance.com',
Expand All @@ -168,6 +179,22 @@ module.exports = {
},
},
};

// Strapi v5 /config/plugins.ts
'shopify': {
config: {
host: 'https://your-strapi-instance.com',
encryptionKey: 'random 32 chars string',
engine: 'redis',
connection: {
host: 'localhost',
port: 6379,
db: 0,
password: 'yourpassword', // optional
username: 'youruser', // optional
},
}
}
```

## 📝 Config
Expand Down
Loading