feat(utils): configure notification module by default (#7814)
Add the notification module to `defineConfig` and configure the local notification module.
This commit is contained in:
@@ -48,6 +48,21 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/fulfillment",
|
||||
},
|
||||
"inventoryService": true,
|
||||
"notification": {
|
||||
"options": {
|
||||
"providers": [
|
||||
{
|
||||
"options": {
|
||||
"config": {
|
||||
"local": {},
|
||||
},
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/notification",
|
||||
},
|
||||
"order": true,
|
||||
"payment": true,
|
||||
"pricingService": true,
|
||||
@@ -138,6 +153,21 @@ describe("defineConfig", function () {
|
||||
"resolve": "./modules/github",
|
||||
},
|
||||
"inventoryService": true,
|
||||
"notification": {
|
||||
"options": {
|
||||
"providers": [
|
||||
{
|
||||
"options": {
|
||||
"config": {
|
||||
"local": {},
|
||||
},
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/notification",
|
||||
},
|
||||
"order": true,
|
||||
"payment": true,
|
||||
"pricingService": true,
|
||||
@@ -225,6 +255,21 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/fulfillment",
|
||||
},
|
||||
"inventoryService": true,
|
||||
"notification": {
|
||||
"options": {
|
||||
"providers": [
|
||||
{
|
||||
"options": {
|
||||
"config": {
|
||||
"local": {},
|
||||
},
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/notification",
|
||||
},
|
||||
"order": true,
|
||||
"payment": true,
|
||||
"pricingService": true,
|
||||
@@ -314,6 +359,21 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/fulfillment",
|
||||
},
|
||||
"inventoryService": true,
|
||||
"notification": {
|
||||
"options": {
|
||||
"providers": [
|
||||
{
|
||||
"options": {
|
||||
"config": {
|
||||
"local": {},
|
||||
},
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/notification",
|
||||
},
|
||||
"order": true,
|
||||
"payment": true,
|
||||
"pricingService": true,
|
||||
|
||||
@@ -114,6 +114,21 @@ export function defineConfig(config: Partial<ConfigModule> = {}): ConfigModule {
|
||||
],
|
||||
},
|
||||
},
|
||||
[Modules.NOTIFICATION]: {
|
||||
resolve: "@medusajs/notification",
|
||||
options: {
|
||||
providers: [
|
||||
{
|
||||
resolve: "@medusajs/notification-local",
|
||||
options: {
|
||||
config: {
|
||||
local: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
...config.modules,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user