mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
update
This commit is contained in:
1 parent
2776d01a4f
commit
76a1f64e4e
2 files changed
+8
-5
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { VercelToolbar } from '@vercel/toolbar/next'
|
||||
|
||||
export default function VercelToolbarWrapper() {
|
||||
return <VercelToolbar />
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
import dynamic from 'next/dynamic'
|
||||
import { useUser } from 'common'
|
||||
import dynamic from 'next/dynamic'
|
||||
import { PropsWithChildren } from 'react'
|
||||
|
||||
// Dynamically load VercelToolbar
|
||||
const VercelToolbar = dynamic<any>(() => import('@vercel/toolbar'), {
|
||||
ssr: false, // Disable SSR for the toolbar
|
||||
const VercelToolbar = dynamic(() => import('./toolbar-wrapper'), {
|
||||
loading: () => <></>,
|
||||
})
|
||||
|
||||
export default function VercelToolbarProvider({ children }: PropsWithChildren<{}>) {
|
||||
@@ -12,7 +11,6 @@ export default function VercelToolbarProvider({ children }: PropsWithChildren<{}
|
||||
|
||||
const isSupabaseTeam =
|
||||
user?.email?.includes('@supabase.com') || user?.email?.includes('@supabase.io')
|
||||
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user