Skip to content

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

Uncomments and adds log links to sidebar nav for settings.

TzeYiingdb7b55d6654c
diff --git a/studio/components/layouts/SettingsLayout/SettingsMenu.utils.ts b/studio/components/layouts/SettingsLayout/SettingsMenu.utils.ts
index d20a1f7ca45..047fd38ce6a 100644
--- a/studio/components/layouts/SettingsLayout/SettingsMenu.utils.ts
+++ b/studio/components/layouts/SettingsLayout/SettingsMenu.utils.ts
@@ -1,14 +1,14 @@
import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
-// import { LOG_TYPE_LABEL_MAPPING } from "lib/constants"
+import { LOG_TYPE_LABEL_MAPPING } from "lib/constants"
export const generateSettingsMenu = (ref: string): ProductMenuGroup[] => {
- // const logItems = ['rest', 'realtime', 'auth', 'storage', 'database'].map((type: string) => {
- // return {
- // name: LOG_TYPE_LABEL_MAPPING[type],
- // key: `logs-${type}`,
- // url: `/project/${ref}/settings/logs/${type}`,
- // items: []
- // }
- // })
+ const logItems = ['rest', 'realtime', 'auth', 'storage', 'database'].map((type: string) => {
+ return {
+ name: LOG_TYPE_LABEL_MAPPING[type],
+ key: `logs-${type}`,
+ url: `/project/${ref}/settings/logs/${type}`,
+ items: []
+ }
+ })
return [
{
@@ -26,9 +26,9 @@ export const generateSettingsMenu = (ref: string): ProductMenuGroup[] => {
},
],
},
- // {
- // title: 'Logs',
- // items: logItems,
- // },
+ {
+ title: 'Logs',
+ items: logItems,
+ },
]
}