Skip to content

How do I disable core modules? #12638

Discussion options

You must be logged in to vote

The feature is still available in the current version, but it's implemented differently than in older versions.

The available core modules that you can disable include:

  1. Product
  2. Cart
  3. Order
  4. Customer
  5. Region
  6. Sales Channel
  7. Pricing
  8. Promotion
  9. Tax
  10. Currency
  11. Payment
  12. Fulfillment
  13. Inventory
  14. Stock Location
    And more...

In your medusa-config.js or medusa-config.ts file, you can disable modules in two ways

File Location :
medusa/packages/core/types/src/common/config-module.ts
medusa/integration-tests/modules/medusa-config.js

  • Set a module to false :
   module.exports = {
     modules: {
       [Modules.PRODUCT]: false,  // This will disable the product module
       [Modules.CART]: false,     // This w…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@prakhar-perennial
Comment options

@Vallabh-Mahanta
Comment options

@prakhar-perennial
Comment options

@Vallabh-Mahanta
Comment options

@prakhar-perennial
Comment options

Answer selected by prakhar-perennial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants