Hi all, I just generated a Phoenix project with mix phx.new myapp --no-html --no-webpack, and found out that I can still access /dashboard for the LiveDashboard.
I wonder how LiveDashboard works in this case, since I have no frontend stuff (e.g. webpack) at all. Specifically,
Is the content of LiveDashboard predefined somewhere (like within Phoenix) and not modifiable?
Does LiveDashboard work differently (e.g. bundled vs. unbundled) depending on whether or not I used --no-webpack?
LiveDashboard is a completely self contained project, which ships with its own markup/assets. Those don’t become userland code like other stuff the generators generate for you. The only userland code you’ll get is the route placed in the router, some links in the layout for html and some useful plugs. Markup/assets for the dashboard are not meant to be user editable. You can modify the dashboard only through the data passed to the plug in the router, which currently is only metrics via the MyAppWeb.Telemetry module.