docs: fix package names of event bus modules (#8262)
* docs: fix package names of event bus modules * fix in config
This commit is contained in:
@@ -23,7 +23,7 @@ The Local Event Bus Module is installed by default in your application.
|
||||
To install Local Event Bus Module, run the following command in the directory of your Medusa application:
|
||||
|
||||
```bash npm2yarn
|
||||
npm install @medusajs/event-local@preview
|
||||
npm install @medusajs/event-bus-local@preview
|
||||
```
|
||||
|
||||
Next, add the module into the `modules` property of the exported object in `medusa-config.js`:
|
||||
|
||||
@@ -25,7 +25,7 @@ In production, it's recommended to use this module.
|
||||
To install Redis Event Bus Module, run the following command in the directory of your Medusa application:
|
||||
|
||||
```bash npm2yarn
|
||||
npm install @medusajs/event-redis@preview
|
||||
npm install @medusajs/event-bus-redis@preview
|
||||
```
|
||||
|
||||
Next, add the module into the `modules` property of the exported object in `medusa-config.js`:
|
||||
@@ -43,7 +43,7 @@ module.exports = defineConfig({
|
||||
// ...
|
||||
modules: {
|
||||
[Modules.EVENT_BUS]: {
|
||||
resolve: "@medusajs/event-redis",
|
||||
resolve: "@medusajs/event-bus-redis",
|
||||
options: {
|
||||
redisUrl: process.env.EVENTS_REDIS_URL,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user