We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d920c2 commit c14e9e3Copy full SHA for c14e9e3
src/routes/__root.tsx
@@ -56,18 +56,20 @@ function RootDocument({ children }: { children: React.ReactNode }) {
56
</head>
57
<body className="dark">
58
{children}
59
- <TanStackDevtools
60
- config={{
61
- position: "bottom-right",
62
- }}
63
- plugins={[
64
- {
65
- name: "Tanstack Router",
66
- render: <TanStackRouterDevtoolsPanel />,
67
- },
68
- TanStackQueryDevtools,
69
- ]}
70
- />
+ {process.env.NODE_ENV !== "production" && (
+ <TanStackDevtools
+ config={{
+ position: "bottom-right",
+ }}
+ plugins={[
+ {
+ name: "Tanstack Router",
+ render: <TanStackRouterDevtoolsPanel />,
+ },
+ TanStackQueryDevtools,
+ ]}
71
+ />
72
+ )}
73
<Scripts />
74
</body>
75
</html>
0 commit comments