I followed this guide on the Grafana developer page to add a nested datasource plugin to an app.
On the page it is stated that:
each nested data source can have its own backend, independent of the app plugin's backend.
But nowhere is described how and searching on the internet didn't really lead to anything.
When i follow the guide it completely omits the backend and breaks the normal plugin structure by renaming the src directory to the plugins name.
I tried to solve this by adding the pkg dir to the plugins directory, but due to the messed up folder structure mage build fails, since the plugin.json file is now in the root directory instead of in src.
What is the proper way to create and build a nested plugin that has its own independent backend?