fix: limit devtools panel to dev mode

This commit is contained in:
2025-09-13 21:35:29 -05:00
parent 08ae54c093
commit 91899bb109

View File

@@ -15,17 +15,19 @@ export const Route = createRootRoute({
>
<Theme accentColor="blue" grayColor="gray">
<Outlet />
<TanstackDevtools
config={{
position: "bottom-left",
}}
plugins={[
{
name: "Tanstack Router",
render: <TanStackRouterDevtoolsPanel />,
},
]}
/>
{import.meta.env.DEV ? (
<TanstackDevtools
config={{
position: "bottom-left",
}}
plugins={[
{
name: "Tanstack Router",
render: <TanStackRouterDevtoolsPanel />,
},
]}
/>
) : null}
</Theme>
</ThemeProvider>
),