mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
fix(studio): format devtool files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
6ef83e3b74
commit
046da3a04e
2 files changed
+2
-6
No files matched your search
@@ -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(() =>
|
||||
|
||||
+1
-4
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user