File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,9 @@ node_modules/
55/playwright-report /
66/blob-report /
77/playwright /.cache /
8+
9+ # Environment files / secrets
10+ .env
11+ .env. *
12+ ! .env.example
13+ ! .env. * .example
Original file line number Diff line number Diff line change @@ -4,13 +4,20 @@ import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"
44import ErrorComponent from "@/components/Common/ErrorComponent"
55import NotFound from "@/components/Common/NotFound"
66
7+ const showTanStackDevtools =
8+ import . meta. env . DEV && import . meta. env . VITE_SHOW_DEVTOOLS === "true"
9+
710export const Route = createRootRoute ( {
811 component : ( ) => (
912 < >
1013 < HeadContent />
1114 < Outlet />
12- < TanStackRouterDevtools position = "bottom-right" />
13- < ReactQueryDevtools initialIsOpen = { false } />
15+ { showTanStackDevtools ? (
16+ < >
17+ < TanStackRouterDevtools position = "bottom-right" />
18+ < ReactQueryDevtools initialIsOpen = { false } />
19+ </ >
20+ ) : null }
1421 </ >
1522 ) ,
1623 notFoundComponent : ( ) => < NotFound /> ,
Original file line number Diff line number Diff line change 33interface ImportMetaEnv {
44 readonly VITE_API_URL : string
55 readonly VITE_GOOGLE_CLIENT_ID ?: string
6+ readonly VITE_SHOW_DEVTOOLS ?: string
67}
78
89interface ImportMeta {
You can’t perform that action at this time.
0 commit comments