Skip to content

Commit

Permalink
See if import.meta.env helps hide dev tools in docker build (chrisben…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa authored Jun 23, 2024
1 parent 0f080b0 commit 3c1d09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/dev/TanStackRouterDevtools.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

export const TanStackRouterDevtools =
process.env.NODE_ENV === 'production'
process.env.NODE_ENV === 'production' || import.meta.env.PROD
? () => null // Render nothing in production
: React.lazy(() =>
// Lazy load in development
Expand Down

0 comments on commit 3c1d09f

Please sign in to comment.