I need to simulate something similar to what I did for NestJS to customize a basic product for a specific customer.
For the backend, written in NestJS, I developed a feature that gets all modules inside a folder called "Plugin" and loads them inside the whole application at startup.
This is because my company sells basic software to N customers, but some of these customers may need more functionalities/customizations.
So at the moment I can provide more controllers/services by adding a folder inside the Plugin folder of my backend server.
By doing so I can have a unique repository of the backend where I can continue providing basic modules updates (the ones that every customer have).
The plugins are in a separate repositories.
Now I need to do the same thing for the frontends, so provide custom pages/components/navigation.
For the navigation it's not a problem, at frontend first load I can ask a JSON that tells me how to build/which elements are present inside the navigation sidebar.
But how can I provide the custom page (so HTML, TS, SCSS) connected to a menu item of the sidebar?