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"> <Theme accentColor="blue" grayColor="gray">
<Outlet /> <Outlet />
<TanstackDevtools {import.meta.env.DEV ? (
config={{ <TanstackDevtools
position: "bottom-left", config={{
}} position: "bottom-left",
plugins={[ }}
{ plugins={[
name: "Tanstack Router", {
render: <TanStackRouterDevtoolsPanel />, name: "Tanstack Router",
}, render: <TanStackRouterDevtoolsPanel />,
]} },
/> ]}
/>
) : null}
</Theme> </Theme>
</ThemeProvider> </ThemeProvider>
), ),