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:
Shahed Nasser
2024-06-24 17:47:40 +03:00
committed by GitHub
parent 021f5ea016
commit 79d90fadc4
2 changed files with 75 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,
}