The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Grab the next param for billing pages
Terry Sutton6ac803385aeb
diff --git a/studio/components/layouts/SettingsLayout/SettingsLayout.tsx b/studio/components/layouts/SettingsLayout/SettingsLayout.tsxindex 016a52967d7..e583cfcd3c7 100644--- a/studio/components/layouts/SettingsLayout/SettingsLayout.tsx+++ b/studio/components/layouts/SettingsLayout/SettingsLayout.tsx@@ -18,7 +18,13 @@ const SettingsLayout: FC<Props> = ({ title, children }) => {const projectBaseInfo = ui.selectedProjectBaseInfoconst router = useRouter()- const page = router.pathname.split('/')[4]+ let page+ // billing pages live under /billing/invoices and /billing/subscription, etc+ // so we need to pass the [5]th part of the url to the menu+ router.pathname.includes('billing')+ ? (page = router.pathname.split('/')[5])+ : (page = router.pathname.split('/')[4])+const menuRoutes = generateSettingsMenu(projectRef, projectBaseInfo)return (