feat: Flatten the provider config for all modules (#7930)

This commit is contained in:
Stevche Radevski
2024-07-03 16:57:12 +02:00
committed by GitHub
parent b6e4435c23
commit 012a624ee4
24 changed files with 168 additions and 292 deletions

View File

@@ -14,20 +14,12 @@ const customPaymentProvider = {
resolve: {
services: [require("@medusajs/payment/dist/providers/system").default],
},
options: {
config: {
default_2: {},
},
},
id: "default_2",
}
const customFulfillmentProvider = {
resolve: "@medusajs/fulfillment-manual",
options: {
config: {
"test-provider": {},
},
},
id: "test-provider",
}
module.exports = {
@@ -101,13 +93,10 @@ module.exports = {
providers: [
{
resolve: "@medusajs/notification-local",
id: "local-notification-provider",
options: {
config: {
"local-notification-provider": {
name: "Local Notification Provider",
channels: ["log", "email"],
},
},
name: "Local Notification Provider",
channels: ["log", "email"],
},
},
],