dashboardConfig
Package: @autotracer/plugin-vite-flow · Layer: Build · Type: object · Default: undefined
dashboardConfig is a build configuration option for flowTracer() — the Vite plugin initializer of the @autotracer/plugin-vite-flow Flow build-time instrumentation package. It mounts the dashboard widget automatically.
Provide dashboardConfig when you want the dashboard available in the browser without mounting it yourself.
If inject is false, the plugin does not apply this option. The @autotracer/dashboard package must also be installed explicitly.
Read together with inject, runtimeControlled, and the Dashboard Package Reference.
Default
If you omit dashboardConfig, the dashboard does not mount.
Fields
enabled: whenfalse, the dashboard widget is not injected and the@autotracer/dashboardpackage is not bundled. Equivalent to omittingdashboardConfigentirely. Settinginjectfalseat the plugin level also skips dashboard injection — you do not need to set both.hideByDefault: starts the widget hidden. Defaulttrue.position: places the widget in one of the four screen corners. Default"bottom-right".hotkeys.toggleTracing: keyboard shortcut for tracing on and off. Default"Alt+Shift+T".hotkeys.toggleDashboard: keyboard shortcut for showing and hiding the widget. Default"Alt+Shift+D".
Usage
To mount the dashboard with its default settings, pass an empty object.
flowTracer({
inject: isInternalBrowserBuild,
dashboardConfig: {},
});To override dashboard behavior, pass the fields you need.
flowTracer({
inject: isInternalBrowserBuild,
dashboardConfig: {
hideByDefault: true,
position: "bottom-right",
},
});