diff --git a/apps/studio/components/layouts/ProjectLayout/index.tsx b/apps/studio/components/layouts/ProjectLayout/index.tsx index db89be94c4e..0797b92daea 100644 --- a/apps/studio/components/layouts/ProjectLayout/index.tsx +++ b/apps/studio/components/layouts/ProjectLayout/index.tsx @@ -55,8 +55,7 @@ import { useAppStateSnapshot } from '@/state/app-state' import { useDatabaseSelectorStateSnapshot } from '@/state/database-selector' const IS_DEV_OR_PREVIEW = - process.env.NODE_ENV === 'development' || - process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' + process.env.NODE_ENV === 'development' || process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' const ResourceExhaustionDevtool = IS_DEV_OR_PREVIEW ? dynamic(() => diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx index 8023866097b..b9353ad8c64 100644 --- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx +++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx @@ -9,10 +9,7 @@ import { Button, cn } from 'ui' import { usageKeys } from '@/data/usage/keys' import type { ResourceWarning } from '@/data/usage/resource-warnings-query' -if ( - process.env.NODE_ENV !== 'development' && - process.env.NEXT_PUBLIC_VERCEL_ENV !== 'preview' -) { +if (process.env.NODE_ENV !== 'development' && process.env.NEXT_PUBLIC_VERCEL_ENV !== 'preview') { throw new Error('ResourceExhaustionDevtool must only be imported in development or preview') }