Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: added logsAuth feature flag

TzeYiingeb76a22285d6
diff --git a/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
index 87be6d53e21..83e371aa3e1 100644
--- a/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
+++ b/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
@@ -1,7 +1,9 @@
import { IS_PLATFORM } from 'lib/constants'
import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import { useFlag } from 'hooks'
export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
+ const logsAuth = useFlag('logsAuth')
return [
{
title: 'General',
@@ -9,7 +11,16 @@ export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
{ name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] },
{ name: 'Policies', key: 'policies', url: `/project/${ref}/auth/policies`, items: [] },
{ name: 'Templates', key: 'templates', url: `/project/${ref}/auth/templates`, items: [] },
- { name: 'Atuh Logs', key: 'templates', url: `/project/${ref}/auth/auth-logs`, items: [] },
+ ...(IS_PLATFORM && logsAuth
+ ? [
+ {
+ name: 'Logs',
+ key: 'logs',
+ url: `/project/${ref}/auth/auth-logs`,
+ items: [],
+ },
+ ]
+ : []),
],
},
...(IS_PLATFORM