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:
1 parent
021f5ea016
commit
79d90fadc4
2 files changed
+75
No files matched your search
@@ -48,6 +48,21 @@ describe("defineConfig", function () {
|
|||||||
"resolve": "@medusajs/fulfillment",
|
"resolve": "@medusajs/fulfillment",
|
||||||
},
|
},
|
||||||
"inventoryService": true,
|
"inventoryService": true,
|
||||||
|
"notification": {
|
||||||
|
"options": {
|
||||||
|
"providers": [
|
||||||
|
{
|
||||||
|
"options": {
|
||||||
|
"config": {
|
||||||
|
"local": {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification-local",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification",
|
||||||
|
},
|
||||||
"order": true,
|
"order": true,
|
||||||
"payment": true,
|
"payment": true,
|
||||||
"pricingService": true,
|
"pricingService": true,
|
||||||
@@ -138,6 +153,21 @@ describe("defineConfig", function () {
|
|||||||
"resolve": "./modules/github",
|
"resolve": "./modules/github",
|
||||||
},
|
},
|
||||||
"inventoryService": true,
|
"inventoryService": true,
|
||||||
|
"notification": {
|
||||||
|
"options": {
|
||||||
|
"providers": [
|
||||||
|
{
|
||||||
|
"options": {
|
||||||
|
"config": {
|
||||||
|
"local": {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification-local",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification",
|
||||||
|
},
|
||||||
"order": true,
|
"order": true,
|
||||||
"payment": true,
|
"payment": true,
|
||||||
"pricingService": true,
|
"pricingService": true,
|
||||||
@@ -225,6 +255,21 @@ describe("defineConfig", function () {
|
|||||||
"resolve": "@medusajs/fulfillment",
|
"resolve": "@medusajs/fulfillment",
|
||||||
},
|
},
|
||||||
"inventoryService": true,
|
"inventoryService": true,
|
||||||
|
"notification": {
|
||||||
|
"options": {
|
||||||
|
"providers": [
|
||||||
|
{
|
||||||
|
"options": {
|
||||||
|
"config": {
|
||||||
|
"local": {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification-local",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification",
|
||||||
|
},
|
||||||
"order": true,
|
"order": true,
|
||||||
"payment": true,
|
"payment": true,
|
||||||
"pricingService": true,
|
"pricingService": true,
|
||||||
@@ -314,6 +359,21 @@ describe("defineConfig", function () {
|
|||||||
"resolve": "@medusajs/fulfillment",
|
"resolve": "@medusajs/fulfillment",
|
||||||
},
|
},
|
||||||
"inventoryService": true,
|
"inventoryService": true,
|
||||||
|
"notification": {
|
||||||
|
"options": {
|
||||||
|
"providers": [
|
||||||
|
{
|
||||||
|
"options": {
|
||||||
|
"config": {
|
||||||
|
"local": {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification-local",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/notification",
|
||||||
|
},
|
||||||
"order": true,
|
"order": true,
|
||||||
"payment": true,
|
"payment": true,
|
||||||
"pricingService": 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,
|
...config.modules,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user