Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

811 B
Raw Blame

Module Providers

You can create module providers, such as Notification or File Module Providers under a sub-directory of this directory. For example, src/providers/my-notification.

Then, you register them in the Medusa application as plugin-name/providers/my-notification:

module.exports = defineConfig({
  // ...
  modules: [
    {
      resolve: "@medusajs/medusa/notification",
      options: {
        providers: [
          {
            resolve: "@myorg/plugin-name/providers/my-notification",
            id: "my-notification",
            options: {
              channels: ["email"],
              // provider options...
            },
          },
        ],
      },
    },
  ],
})

Learn more in this documentation.