diff --git a/app/src/components/ErrorBoundary.tsx b/app/src/components/ErrorBoundary.tsx index b220fb158d..28fcda186a 100644 --- a/app/src/components/ErrorBoundary.tsx +++ b/app/src/components/ErrorBoundary.tsx @@ -9,6 +9,8 @@ import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; +import { CONFIG } from 'src/global-config'; + interface Props { children: ReactNode; fallback?: ReactNode; @@ -210,7 +212,7 @@ export class ErrorBoundary extends Component { )} - {componentStack && import.meta.env.DEV && !showDetails && ( + {componentStack && CONFIG.isDev && !showDetails && ( {body} - {import.meta.env.DEV && ( + {CONFIG.isDev && ( interface ImportMetaEnv { - readonly VITE_API_URL: string; - readonly VITE_DEBUG_API_URL: string; + readonly VITE_API_URL?: string; + readonly VITE_DEBUG_API_URL?: string; } interface ImportMeta {