Question regarding structure of module
Hello, this is more of a theoretical question, for context i have an app used by different customers.
The first plan in my mind is to have a repo of modules which willl have the custom functionality of each customer ( maybe customer X wants Y feature, and customer A wants B feature) in this module on the before build hook get the customer name ( example pepsi)
And download the appropriate module from the repo and install it (I'm 80% positive that this is possible if it's not please let me know)
I'm more worried about the structure of the module. Is it correct to have a module which just has components with some logic (opening modals, calling a db to. get some data and show them on a table )and without a plugin file?
For example as the attached picture ( idk why vs code is full of errors everything works fine without errors)
I also found out about nuxt layers but i dont think it fits my needs.
So what are your thoughts is this correct use of modules ?
0 Replies