Can a module contain admin widgets, workflow hooks, links and routes? #10624
Unanswered
TimmyBravo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently looking into possibly using Medusa V2 as the base for a couple eCommerce sites but have a few questions regarding how to structure things.
My goal is to built all additional functionality as modules in separate NPM packages in order to easily reuse that functionality across the different sites while being able to update them all if needed without updating source code for each individual site. As a test I've tried creating a separate NPM package of the Brand Module in the docs but have been unable to get admin widgets, workflow hooks, links and routes to work. Is it possible to keep that functionality in the module somehow or do I have to duplicate that functionality for each site?
I can get them to work by placing them in the source of the development medusa instance but I'd like to keep everything in the module if possible for versioning reasons since multiple sites will use the same functionality.
Is it possible to store these things in the module or do they have to be kept unique for each medusa instance and if so, why? What's the recommended solution for something like this?
Beta Was this translation helpful? Give feedback.
All reactions