The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Dashboard deploy (#17718)
Joshen Lima6f37c37a2f0
diff --git a/README.md b/README.mdindex 491a08b1009..e55c8927643 100644--- a/README.md+++ b/README.md@@ -212,6 +212,42 @@ Our approach for client libraries is modular. Each sub-library is a standalone i<!--- Remove this list if you're translating to another language, it's hard to keep updated across multiple files--><!--- Keep only the link to the list of translation files-->+## Badges++++```md+[](https://supabase.com)+```++```html+<a href="https://supabase.com">+ <img+ width="168"+ height="28"+ src="https://supabase.com/badge-made-with-supabase.svg"+ alt="Made with Supabase"+ />+</a>+```++++```md+[](https://supabase.com)+```++```html+<a href="https://supabase.com">+ <img+ width="168"+ height="28"+ src="https://supabase.com/badge-made-with-supabase-dark.svg"+ alt="Made with Supabase"+ />+</a>+```+## Translations- [Arabic | العربية](/i18n/README.ar.md)diff --git a/apps/docs/components/MDX/kotlin_project_setup.mdx b/apps/docs/components/MDX/kotlin_project_setup.mdxindex fbf2e6ebd09..717f5b03892 100644--- a/apps/docs/components/MDX/kotlin_project_setup.mdx+++ b/apps/docs/components/MDX/kotlin_project_setup.mdx@@ -21,6 +21,7 @@ Now we are going to set up the database schema. You can just copy/paste the SQLsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method">{/* <TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/components/MDX/project_setup.mdx b/apps/docs/components/MDX/project_setup.mdxindex 197c27f0c02..5994073e6e6 100644--- a/apps/docs/components/MDX/project_setup.mdx+++ b/apps/docs/components/MDX/project_setup.mdx@@ -21,6 +21,7 @@ Now we are going to set up the database schema. We can use the "User Managementsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsxindex bc7c67c60d3..38bcff6c79b 100644--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx@@ -5,6 +5,7 @@ import {IconMenuCli,IconMenuCsharp,IconMenuDatabase,+ IconMenuGraphQL,IconMenuEdgeFunctions,IconMenuFlutter,IconMenuGettingStarted,@@ -16,7 +17,7 @@ import {IconMenuRealtime,IconMenuResources,IconMenuSelfHosting,- IconMenuServerlessApis,+ IconMenuRestApis,IconMenuStorage,IconMenuSwift,IconMenuStatus,@@ -32,8 +33,10 @@ function getMenuIcon(menuKey: string, width: number = 16, height: number = 16) {return <IconMenuGettingStarted width={width} height={height} />case 'database':return <IconMenuDatabase width={width} height={height} />- case 'serverless-apis':- return <IconMenuServerlessApis width={width} height={height} />+ case 'rest':+ return <IconMenuRestApis width={width} height={height} />+ case 'graphql':+ return <IconMenuGraphQL width={width} height={height} />case 'auth':return <IconMenuAuth width={width} height={height} />case 'edge-functions':diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsxindex 4d2e53f6ea2..b29f9275e43 100644--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx@@ -23,6 +23,25 @@ export function IconMenuHome({ width = 16, height = 16 }: HomeMenuIcon) {)}+export function IconMenuGraphQL({ width = 16, height = 16 }: HomeMenuIcon) {+ return (+ <svg+ width={width}+ height={height}+ viewBox="0 0 24 24"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M12,5.37L11.56,5.31L6,14.9C6.24,15.11 6.4,15.38 6.47,15.68H17.53C17.6,15.38 17.76,15.11 18,14.9L12.44,5.31L12,5.37M6.6,16.53L10.88,19.06C11.17,18.79 11.57,18.63 12,18.63C12.43,18.63 12.83,18.79 13.12,19.06L17.4,16.53H6.6M12,22A1.68,1.68 0 0,1 10.32,20.32L10.41,19.76L6.11,17.21C5.8,17.57 5.35,17.79 4.84,17.79A1.68,1.68 0 0,1 3.16,16.11C3.16,15.32 3.69,14.66 4.42,14.47V9.36C3.59,9.25 2.95,8.54 2.95,7.68A1.68,1.68 0 0,1 4.63,6C5.18,6 5.66,6.26 5.97,6.66L10.38,4.13L10.32,3.68C10.32,2.75 11.07,2 12,2C12.93,2 13.68,2.75 13.68,3.68L13.62,4.13L18.03,6.66C18.34,6.26 18.82,6 19.37,6A1.68,1.68 0 0,1 21.05,7.68C21.05,8.54 20.41,9.25 19.58,9.36V14.47C20.31,14.66 20.84,15.32 20.84,16.11A1.68,1.68 0 0,1 19.16,17.79C18.65,17.79 18.2,17.57 17.89,17.21L13.59,19.76L13.68,20.32A1.68,1.68 0 0,1 12,22M10.8,4.86L6.3,7.44L6.32,7.68C6.32,8.39 5.88,9 5.26,9.25L5.29,14.5L10.8,4.86M13.2,4.86L18.71,14.5L18.74,9.25C18.12,9 17.68,8.39 17.68,7.68L17.7,7.44L13.2,4.86Z"+ stroke="currentColor"+ strokeMiterlimit="10"+ strokeLinejoin="bevel"+ />+ </svg>+ )+}+export function IconMenuApi({ width = 16, height = 16 }: HomeMenuIcon) {return (<svg@@ -118,7 +137,7 @@ export function IconMenuDatabase({ width = 16, height = 16 }: HomeMenuIcon) {)}-export function IconMenuServerlessApis({ width = 16, height = 16 }: HomeMenuIcon) {+export function IconMenuRestApis({ width = 16, height = 16 }: HomeMenuIcon) {return (<svgviewBox="0 0 16 16"diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 9264d89beec..17de3d3ff4e 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -16,24 +16,27 @@ export const HOMEPAGE_MENU_ITEMS: HomepageMenuItems = [},],[+ {+ label: 'Product',+ },{label: 'Database',icon: 'database',href: '/guides/database',level: 'database',},- {- label: 'Serverless APIs',- icon: 'serverless-apis',- href: '/guides/api',- level: 'api',- },{label: 'Auth',icon: 'auth',href: '/guides/auth',level: 'auth',},+ {+ label: 'Storage',+ icon: 'storage',+ href: '/guides/storage',+ level: 'storage',+ },{label: 'Edge Functions',icon: 'edge-functions',@@ -46,12 +49,6 @@ export const HOMEPAGE_MENU_ITEMS: HomepageMenuItems = [href: '/guides/realtime',level: 'realtime',},- {- label: 'Storage',- icon: 'storage',- href: '/guides/storage',- level: 'storage',- },{label: 'AI & Vectors',icon: 'ai',@@ -60,6 +57,26 @@ export const HOMEPAGE_MENU_ITEMS: HomepageMenuItems = [},],[+ {+ label: 'API',+ },+ {+ label: 'REST',+ icon: 'rest',+ href: '/guides/api',+ level: 'api',+ },+ {+ label: 'GraphQL',+ icon: 'graphql',+ href: '/guides/graphql',+ level: 'graphql',+ },+ ],+ [+ {+ label: 'Development Cycle',+ },{label: 'Local Dev / CLI',icon: 'reference-cli',@@ -741,12 +758,15 @@ export const database: NavMenuConstant = {}export const api: NavMenuConstant = {- icon: 'serverless-apis',- title: 'Serverless APIs',+ icon: 'rest',+ title: 'REST API',url: '/guides/api',items: [{ name: 'Overview', url: '/guides/api', items: [] },{ name: 'Quickstart', url: '/guides/api/quickstart', items: [] },+ { name: 'Client Libraries', url: '/guides/api/rest/client-libs', items: [] },+ { name: 'Auto-generated Docs', url: '/guides/api/rest/auto-generated-docs', items: [] },+ { name: 'Generating Types', url: '/guides/api/rest/generating-types', items: [] },{name: 'Guides',url: '/guides/api',@@ -762,20 +782,16 @@ export const api: NavMenuConstant = {{ name: 'Using custom schemas', url: '/guides/api/using-custom-schemas', items: [] },],},- {- name: 'REST & REALTIME',- url: undefined,- items: [- { name: 'Auto-generated Docs', url: '/guides/api/rest/auto-generated-docs', items: [] },- { name: 'Client Libraries', url: '/guides/api/rest/client-libs', items: [] },- { name: 'Generating Types', url: '/guides/api/rest/generating-types', items: [] },- ],- },- {- name: 'GRAPHQL',- url: undefined,- items: [{ name: 'GraphiQL Documentation', url: '/guides/api/graphql/graphiql', items: [] }],- },+ ],+}++export const graphql: NavMenuConstant = {+ icon: 'graphql',+ title: 'GraphQL',+ url: '/guides/graphql',+ items: [+ { name: 'Overview', url: '/guides/graphql', items: [] },+ { name: 'API', url: '/guides/graphql/api', items: [] },],}diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex bb5b6035dbd..329b5ed5381 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -48,6 +48,11 @@ const menus: Menu[] = [path: '/guides/api',type: 'guide',},+ {+ id: 'graphql',+ path: '/guides/graphql',+ type: 'guide',+ },{id: 'auth',path: '/guides/auth',diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsxindex 0d390a0e6af..0aafad62318 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx@@ -19,7 +19,7 @@ const HeaderLink = React.memo(function HeaderLink(props: {className={[' ',!props.title && 'capitalize',- props.url === router.pathname ? 'text-brand' : 'hover:text-brand text-scale-1200',+ props.url === router.asPath ? 'text-brand' : 'hover:text-brand text-scale-1200',].join(' ')}>{props.title ?? props.id}@@ -30,7 +30,7 @@ const HeaderLink = React.memo(function HeaderLink(props: {const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any) {const router = useRouter()const { isDarkMode } = useTheme()- const activeItem = props.subItem.url === router.pathname+ const activeItem = props.subItem.url === router.asPathconst activeItemRef = useRef(null)const LinkContainer = (props) => {@@ -96,7 +96,7 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any<aclassName={['cursor-pointer transition text-sm',- subSubItem.url === router.pathname+ subSubItem.url === router.asPath? 'text-brand': 'hover:text-brand text-scale-1000',].join(' ')}@@ -123,7 +123,7 @@ const ContentLink = React.memo(function ContentLink(props: any) {<aclassName={['cursor-pointer transition text-sm',- props.url === router.pathname+ props.url === router.asPath? 'text-brand': 'hover:text-scale-1200 dark:hover:text-scale-1100 text-scale-1000',].join(' ')}diff --git a/apps/docs/components/Navigation/RefSwitcher.tsx b/apps/docs/components/Navigation/RefSwitcher.tsxindex 25a2335da54..c77b6ce6ebb 100644--- a/apps/docs/components/Navigation/RefSwitcher.tsx+++ b/apps/docs/components/Navigation/RefSwitcher.tsx@@ -12,7 +12,7 @@ const RefSwitcher = () => {useEffect(() => {setOpen(false)- }, [router.pathname])+ }, [router.asPath])return (<div className="px-10 flex items-center -space-x-px">diff --git a/apps/docs/components/index.tsx b/apps/docs/components/index.tsxindex c837ee2c74b..5d53667fe6d 100644--- a/apps/docs/components/index.tsx+++ b/apps/docs/components/index.tsx@@ -37,7 +37,7 @@ import {IconMenuHome,IconMenuGettingStarted,IconMenuDatabase,- IconMenuServerlessApis,+ IconMenuRestApis,IconMenuAuth,IconMenuEdgeFunctions,IconMenuRealtime,@@ -104,7 +104,7 @@ const components = {IconMenuHome,IconMenuGettingStarted,IconMenuDatabase,- IconMenuServerlessApis,+ IconMenuRestApis,IconMenuAuth,IconMenuEdgeFunctions,IconMenuRealtime,diff --git a/apps/docs/components/reference/ApiOperationSection.tsx b/apps/docs/components/reference/ApiOperationSection.tsxindex 6713809bccf..46b58e37479 100644--- a/apps/docs/components/reference/ApiOperationSection.tsx+++ b/apps/docs/components/reference/ApiOperationSection.tsx@@ -92,6 +92,7 @@ const ApiOperationSection = (props) => {size="small"type="underlined"defaultActiveId={operation.responseList[0].responseCode}+ queryGroup="response-status">{operation.responseList.map((response: any) => (<Tabs.Panel id={response.responseCode} label={response.responseCode}>diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsxindex 792297211de..32c96d3b731 100644--- a/apps/docs/components/reference/CLICommandSection.tsx+++ b/apps/docs/components/reference/CLICommandSection.tsx@@ -138,6 +138,7 @@ const CliCommandSection = (props) => {size="tiny"type="rounded-pills"scrollable+ queryGroup="example">{command.examples ? (command.examples.map((example) => {diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsxindex 88c06beda04..90b2fc127f8 100644--- a/apps/docs/components/reference/RefFunctionSection.tsx+++ b/apps/docs/components/reference/RefFunctionSection.tsx@@ -111,6 +111,7 @@ const RefFunctionSection: React.FC<IRefFunctionSection> = (props) => {size="tiny"type="rounded-pills"scrollable+ queryGroup="example">{item.examples &&item.examples.map((example, exampleIndex) => {diff --git a/apps/docs/docs/ref/csharp/installing.mdx b/apps/docs/docs/ref/csharp/installing.mdxindex e274af8e280..4709791a7ec 100644--- a/apps/docs/docs/ref/csharp/installing.mdx+++ b/apps/docs/docs/ref/csharp/installing.mdx@@ -19,7 +19,9 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="csharp">+ defaultActiveId="csharp"+ queryGroup="language"+ ><TabPanel id="csharp" label="Terminal">```sh Terminaldiff --git a/apps/docs/docs/ref/dart/installing.mdx b/apps/docs/docs/ref/dart/installing.mdxindex d53e3c99218..3508de723c2 100644--- a/apps/docs/docs/ref/dart/installing.mdx+++ b/apps/docs/docs/ref/dart/installing.mdx@@ -20,6 +20,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabsize="small"type="underlined"defaultActiveId="flutter"+ queryGroup="framework"><TabPanel id="flutter" label="Flutter">diff --git a/apps/docs/docs/ref/dart/v0/upgrade-guide.mdx b/apps/docs/docs/ref/dart/v0/upgrade-guide.mdxindex 6da7b0c0fe5..b2eec12eab8 100644--- a/apps/docs/docs/ref/dart/v0/upgrade-guide.mdx+++ b/apps/docs/docs/ref/dart/v0/upgrade-guide.mdx@@ -38,6 +38,7 @@ The way supabase-flutter throws error has changed in v1. In v0, errors were retusize="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -84,6 +85,7 @@ In v0, `SupabaseAuthState` and `SupabaseAuthRequiredState` were required to handsize="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -136,6 +138,7 @@ await Supabase.initialize(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -183,6 +186,7 @@ authSubscription.cancel();size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -216,6 +220,7 @@ await supabase.auth.signInWithPassword(email: email, password: password);size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -249,6 +254,7 @@ await supabase.auth.signInWithOtp(email: email);size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -291,6 +297,7 @@ await supabase.auth.signInWithOAuth(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -330,6 +337,7 @@ await supabase.auth.signInWithPassword(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -372,6 +380,7 @@ await supabase.auth.verifyOTP(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -412,6 +421,7 @@ await supabase.auth.resetPasswordForEmail(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -445,6 +455,7 @@ final Session? session = supabase.auth.currentSession;size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -478,6 +489,7 @@ final User? user = supabase.auth.currentUser;size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -523,6 +535,7 @@ Also, calling `.execute()` at the end of the query was a requirement in v0, butsize="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -560,6 +573,7 @@ await supabase.from('my_table').insert(data);size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -600,6 +614,7 @@ final insertedData = await supabase.from('my_table').insert(data).select();size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -638,6 +653,7 @@ supabase.from('my_table')size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">@@ -683,6 +699,7 @@ channel.on(size="small"type="underlined"defaultActiveId="0.x"+ queryGroup="version"><TabPanel id="0.x" label="Before">diff --git a/apps/docs/docs/ref/javascript/installing.mdx b/apps/docs/docs/ref/javascript/installing.mdxindex fb4e334389e..dfb86377c64 100644--- a/apps/docs/docs/ref/javascript/installing.mdx+++ b/apps/docs/docs/ref/javascript/installing.mdx@@ -20,6 +20,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabsize="small"type="underlined"defaultActiveId="npm"+ queryGroup="platform"><TabPanel id="npm" label="npm">diff --git a/apps/docs/docs/ref/javascript/v1/upgrade-guide.mdx b/apps/docs/docs/ref/javascript/v1/upgrade-guide.mdxindex d031f4a0778..36b040b0aa9 100644--- a/apps/docs/docs/ref/javascript/v1/upgrade-guide.mdx+++ b/apps/docs/docs/ref/javascript/v1/upgrade-guide.mdx@@ -38,6 +38,7 @@ _Optionally_ if you are using custom configuration with `createClient` then follsize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">@@ -87,6 +88,7 @@ The signIn() method has been deprecated in favor of more explicit method signatusize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -124,6 +126,7 @@ const {size="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -159,6 +162,7 @@ const { error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -193,6 +197,7 @@ const { error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -228,6 +233,7 @@ const { error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -269,6 +275,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -305,6 +312,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">@@ -340,6 +348,7 @@ const {size="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">@@ -376,6 +385,7 @@ const { user } = sessionsize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -413,6 +423,7 @@ const {size="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">@@ -470,6 +481,7 @@ Previously, these methods return inserted/updated/deleted rows by default (whichsize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -506,6 +518,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -544,6 +557,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -580,6 +594,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">```ts@@ -620,6 +635,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">@@ -661,6 +677,7 @@ const userListener = supabasesize="small"type="underlined"defaultActiveId="1.0x"+ queryGroup="version"><TabPanel id="1.0x" label="Before">diff --git a/apps/docs/docs/ref/kotlin/installing.mdx b/apps/docs/docs/ref/kotlin/installing.mdxindex 07125a7c0ac..ee4bbea96b1 100644--- a/apps/docs/docs/ref/kotlin/installing.mdx+++ b/apps/docs/docs/ref/kotlin/installing.mdx@@ -21,7 +21,9 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -56,7 +58,9 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -112,7 +116,9 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -145,7 +151,9 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -197,7 +205,9 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -272,7 +282,9 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlin@@ -319,7 +331,9 @@ By default, [KotlinX Serialization](https://github.com/Kotlin/kotlinx.serializat<Tabssize="small"type="underlined"- defaultActiveId="kotlin">+ defaultActiveId="kotlin"+ queryGroup="build-file"+ ><TabPanel id="kotlin" label="build.gradle.kts">```kotlindiff --git a/apps/docs/docs/reference/csharp/initializing.mdx b/apps/docs/docs/reference/csharp/initializing.mdxindex ca29a5605a3..baa0ab67f13 100644--- a/apps/docs/docs/reference/csharp/initializing.mdx+++ b/apps/docs/docs/reference/csharp/initializing.mdx@@ -20,7 +20,9 @@ admin panel and pass it into your client initialization function.<Tabssize="small"type="underlined"- defaultActiveId="csharp-init-standard">+ defaultActiveId="csharp-init-standard"+ queryGroup="init-method"+ ><TabPanel id="csharp-init-standard" label="Standard">```csharpdiff --git a/apps/docs/docs/reference/csharp/installing.mdx b/apps/docs/docs/reference/csharp/installing.mdxindex e274af8e280..6dc10f8ad75 100644--- a/apps/docs/docs/reference/csharp/installing.mdx+++ b/apps/docs/docs/reference/csharp/installing.mdx@@ -19,8 +19,10 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supab<Tabssize="small"type="underlined"- defaultActiveId="csharp">- <TabPanel id="csharp" label="Terminal">+ defaultActiveId="csharp"+ queryGroup="install-method"+ >+ <TabPanel id="terminal" label="Terminal">```sh Terminaldotnet add package supabase-csharpdiff --git a/apps/docs/docs/reference/javascript/installing.mdx b/apps/docs/docs/reference/javascript/installing.mdxindex b948b44d38e..c3c6b893601 100644--- a/apps/docs/docs/reference/javascript/installing.mdx+++ b/apps/docs/docs/reference/javascript/installing.mdx@@ -12,6 +12,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabsize="small"type="underlined"defaultActiveId="npm"+ queryGroup="package-manager"><TabPanel id="npm" label="npm">diff --git a/apps/docs/docs/reference/postgres/changing-timezones.mdx b/apps/docs/docs/reference/postgres/changing-timezones.mdxindex e836b1bf252..fd09965b4a4 100644--- a/apps/docs/docs/reference/postgres/changing-timezones.mdx+++ b/apps/docs/docs/reference/postgres/changing-timezones.mdx@@ -10,7 +10,9 @@ Data types.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -34,7 +36,9 @@ set timezone to 'America/New_York';<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -59,7 +63,9 @@ Get a full list of timezones supported by your database. This will return the fo<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -80,7 +86,9 @@ Use `ilike` (case insensitive search) to find specific timezones.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/columns.mdx b/apps/docs/docs/reference/postgres/columns.mdxindex 8ec74a21db2..59d4a1ebea5 100644--- a/apps/docs/docs/reference/postgres/columns.mdx+++ b/apps/docs/docs/reference/postgres/columns.mdx@@ -10,7 +10,9 @@ Creating columns.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -33,7 +35,9 @@ create table table_name (<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -54,7 +58,9 @@ create table table_name (<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/connection-strings.mdx b/apps/docs/docs/reference/postgres/connection-strings.mdxindex 4d7a60ae516..630eaa705cd 100644--- a/apps/docs/docs/reference/postgres/connection-strings.mdx+++ b/apps/docs/docs/reference/postgres/connection-strings.mdx@@ -10,7 +10,9 @@ There are various ways to connect to your database, depending on the configurati<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -40,7 +42,9 @@ If you're using a default setup, your postgres connection string will likely be<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -61,7 +65,9 @@ See full [documentation](http://jdbc.postgresql.org/documentation/head/connect.h<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -80,7 +86,9 @@ See full [documentation](http://npgsql.projects.postgresql.org/docs/manual/UserM<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -99,7 +107,9 @@ See full [documentation](http://php.net/manual/en/book.pgsql.php).<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/database-passwords.mdx b/apps/docs/docs/reference/postgres/database-passwords.mdxindex 4cc8ec9fa8e..15759bbd9c5 100644--- a/apps/docs/docs/reference/postgres/database-passwords.mdx+++ b/apps/docs/docs/reference/postgres/database-passwords.mdx@@ -14,7 +14,9 @@ Manage the passwords of your database users using any super user.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/database-users.mdx b/apps/docs/docs/reference/postgres/database-users.mdxindex d13e8621679..bbf8279c841 100644--- a/apps/docs/docs/reference/postgres/database-users.mdx+++ b/apps/docs/docs/reference/postgres/database-users.mdx@@ -14,7 +14,9 @@ Users and Roles are almost interchangeable.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/publications.mdx b/apps/docs/docs/reference/postgres/publications.mdxindex aabcc783c99..8eddb30cb5a 100644--- a/apps/docs/docs/reference/postgres/publications.mdx+++ b/apps/docs/docs/reference/postgres/publications.mdx@@ -17,7 +17,9 @@ This publication will contain all changes to all tables.<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -35,7 +37,9 @@ for all tables;<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -53,7 +57,9 @@ for table table_one, table_two;<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -71,7 +77,9 @@ add table table_name;<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -90,7 +98,9 @@ with (publish = 'insert');<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -109,7 +119,9 @@ with (publish = 'update');<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -128,7 +140,9 @@ with (publish = 'delete');<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -147,7 +161,9 @@ If you are planning to re-create a publication, it's best to do it in a transact<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/schemas.mdx b/apps/docs/docs/reference/postgres/schemas.mdxindex 7b77f396b41..5abde3a742a 100644--- a/apps/docs/docs/reference/postgres/schemas.mdx+++ b/apps/docs/docs/reference/postgres/schemas.mdx@@ -13,7 +13,9 @@ For example, you might want to use a `public` schema for user-facing data, and a<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -38,7 +40,9 @@ create schema schema_name;<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -55,7 +59,9 @@ create schema schema_name;<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -75,7 +81,9 @@ As a result, you will always need to use double-quotes when referencing your sch<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/docs/reference/postgres/tables.mdx b/apps/docs/docs/reference/postgres/tables.mdxindex ad95ca5fda1..e47884e5acd 100644--- a/apps/docs/docs/reference/postgres/tables.mdx+++ b/apps/docs/docs/reference/postgres/tables.mdx@@ -13,7 +13,9 @@ Tables are similar to excel spreadsheets. They contain columns & rows of data. T<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -49,7 +51,9 @@ create table schema_name.table_name (<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -77,7 +81,9 @@ create table schema_name.table_name (<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -99,7 +105,9 @@ create table table_name (<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">@@ -118,7 +126,9 @@ alter table table_name<TabsdefaultActiveId="sql"groupId="reference/postgres"- values={[{ label: 'SQL', value: 'sql' }]}>+ values={[{ label: 'SQL', value: 'sql' }]}+ queryGroup="database-method"+><TabsPanel id="sql" label="sql">diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsxindex 953cb518817..15c841f2187 100644--- a/apps/docs/layouts/SiteLayout.tsx+++ b/apps/docs/layouts/SiteLayout.tsx@@ -23,8 +23,12 @@ const levelsData = {name: 'Database',},api: {- icon: '/docs/img/icons/menu/database',- name: 'Serverless APIs',+ icon: '/docs/img/icons/menu/rest',+ name: 'REST API',+ },+ graphql: {+ icon: '/docs/img/icons/menu/graphql',+ name: 'GraphQL',},auth: {icon: '/docs/img/icons/menu/auth',diff --git a/apps/docs/lib/mdx/plugins/remarkAdmonition.ts b/apps/docs/lib/mdx/plugins/remarkAdmonition.tsindex a9a212d2825..33b8110dfa0 100644--- a/apps/docs/lib/mdx/plugins/remarkAdmonition.ts+++ b/apps/docs/lib/mdx/plugins/remarkAdmonition.ts@@ -15,14 +15,17 @@ const remarkMkDocsAdmonition = function () {const [firstChild] = paragraph.childrenif (firstChild?.type === 'text') {- const match = firstChild.value.match(/^!!! ?(.*?)\n(.*)/s)+ // Look for 3 '!', followed by an admonition type, followed by+ // an optionally quoted title, followed by optional newlines of text+ const match = firstChild.value.match(/^!!! ?("?)(.+)\1 ?\n?((?:.|\n)*)/)if (!match) {return}- // Extract the admonition type along with the remaining text- const [, type, value] = match+ // Extract the admonition type, title, and remaining text+ const [, , typeTitle, value] = match+ const [, type, title] = typeTitle.match(/^(.+?) ?(?:"(.*)")?$/)// Rewrite the node's value to remove the admonition syntaxfirstChild.value = value@@ -46,6 +49,14 @@ const remarkMkDocsAdmonition = function () {children,}+ if (title) {+ admonitionElement.attributes.push({+ type: 'mdxJsxAttribute',+ name: 'label',+ value: title,+ })+ }+// Overwrite original node with new elementparent.children.splice(index, 1, admonitionElement)}diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 93b3cd0df9b..3780ffe0193 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -52,6 +52,7 @@ const nextConfig = {domains: ['avatars.githubusercontent.com','github.com',+ 'supabase.github.io','user-images.githubusercontent.com','raw.githubusercontent.com','weweb-changelog.ghost.io',diff --git a/apps/docs/pages/guides/ai/choosing-compute-addon.mdx b/apps/docs/pages/guides/ai/choosing-compute-addon.mdxindex f384b844621..ad1fe96b6f0 100644--- a/apps/docs/pages/guides/ai/choosing-compute-addon.mdx+++ b/apps/docs/pages/guides/ai/choosing-compute-addon.mdx@@ -30,6 +30,7 @@ This benchmark uses the dbpedia-entities-openai-1M dataset containing 1,000,000size="small"type="underlined"defaultActiveId="gte384"+ queryGroup="benchmark"><TabPanel id="gte384" label="gte-small-384">@@ -60,6 +61,7 @@ This benchmark uses the [dbpedia-entities-openai-1M](https://huggingface.co/datasize="small"type="underlined"defaultActiveId="openai1536"+ queryGroup="benchmark"><TabPanel id="openai1536" label="OpenAI-1536">@@ -113,6 +115,7 @@ This benchmark uses the dbpedia-entities-openai-1M dataset containing 1,000,000size="small"type="underlined"defaultActiveId="gte384_98"+ queryGroup="benchmark"><TabPanel id="gte384_98" label="gte-small-384, accuracy=.98">@@ -157,6 +160,7 @@ This benchmark uses the [gist-960-angular](http://corpus-texmex.irisa.fr/) datassize="small"type="underlined"defaultActiveId="gist960"+ queryGroup="benchmark"><TabPanel id="gist960" label="gist-960, probes = 10">@@ -185,6 +189,7 @@ This benchmark uses the [dbpedia-entities-openai-1M](https://huggingface.co/datasize="small"type="underlined"defaultActiveId="dbpedia1536"+ queryGroup="benchmark"><TabPanel id="dbpedia1536" label="OpenAI-1536, probes = 10">@@ -260,6 +265,7 @@ You can increase the Requests per Second by increasing `m` and `ef_construction`size="small"type="underlined"defaultActiveId="hnsw"+ queryGroup="index-type"><TabPanel id="hnsw" label="HNSW">diff --git a/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx b/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdxindex a568300d26a..daa46311508 100644--- a/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx+++ b/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx@@ -35,6 +35,7 @@ Let's prepare the database schema. We can use the "OpenAI Vector Search" quickstsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/ai/langchain.mdx b/apps/docs/pages/guides/ai/langchain.mdxindex fa8320819a2..1d82359a7e6 100644--- a/apps/docs/pages/guides/ai/langchain.mdx+++ b/apps/docs/pages/guides/ai/langchain.mdx@@ -21,6 +21,7 @@ Prepare you database with the relevant tables:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/ai/vector-columns.mdx b/apps/docs/pages/guides/ai/vector-columns.mdxindex 8b4d29643a5..8dc048667f4 100644--- a/apps/docs/pages/guides/ai/vector-columns.mdx+++ b/apps/docs/pages/guides/ai/vector-columns.mdx@@ -20,6 +20,7 @@ Vectors in Supabase are enabled via [pgvector](https://github.com/pgvector/pgvecsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/api.mdx b/apps/docs/pages/guides/api.mdxindex 5ac4bc65ba3..21b68b980fb 100644--- a/apps/docs/pages/guides/api.mdx+++ b/apps/docs/pages/guides/api.mdx@@ -2,23 +2,24 @@ import Layout from '~/layouts/DefaultGuideLayout'export const meta = {id: 'api',- title: 'Serverless APIs',- description: 'Auto-generating and Realtime APIs.',+ title: 'REST API',+ description: 'Auto-generating REST API.',sidebar_label: 'Overview',video: 'https://www.youtube.com/v/rPAJJFdtPw0',}-Supabase auto-generates three types of API directly from your database schema.+Supabase auto-generates an API directly from your database schema allowing you to connect to your database through a restful interface, directly from the browser.-- REST - connect to your database through a restful interface, directly from the browser.-- GraphQL - manipulate your database using a graph-like query language.-- Realtime - listen to database changes.--All the APIs are auto-generated from your database and are designed to get you building as fast as possible, without writing a single line of code.+The API is auto-generated from your database and is designed to get you building as fast as possible, without writing a single line of code.You can use them directly from the browser (two-tier architecture), or as a complement to your own API server (three-tier architecture).-## Features+## Features [#rest-api-overview]++Supabase provides a RESTful API using [PostgREST](https://postgrest.org/). This is a very thin API layer on top of Postgres.+It exposes everything you need from a CRUD API at the URL `https://<project_ref>.supabase.co/rest/v1/`.++The REST interface is automatically reflected from your database's schema and is:- **Instant and auto-generated.** <br />As you update your database the changes are immediately accessible through your API.- **Self documenting.** <br />Supabase generates documentation in the Dashboard which updates as you make database changes.@@ -26,19 +27,14 @@ You can use them directly from the browser (two-tier architecture), or as a comp- **Fast.** <br />Our benchmarks for basic reads are more than 300% faster than Firebase. The API is a very thin layer on top of Postgres, which does most of the heavy lifting.- **Scalable.** <br />The API can serve thousands of simultaneous requests, and works well for Serverless workloads.-## REST API [#rest-api-overview]--Supabase provides a RESTful API using [PostgREST](https://postgrest.org/). This is a very thin API layer on top of Postgres.-It provides everything you need from a CRUD API at the URL `https://<project_ref>.supabase.co/rest/v1/`.--The REST interface is automatically reflected from your database's schema and supports:+The reflected API is designed to retain as much of Postgres' capability as possible including:- Basic CRUD operations (Create/Read/Update/Delete)- Arbitrarily deep relationships among tables/views, functions that return table types can also nest related tables/views.- Works with Postgres Views, Materialized Views and Foreign Tables- Works with Postgres Functions- User defined computed columns and computed relationships-- Works with the Postgres security model - including Row Level Security, Roles, and Grants.+- The Postgres security model - including Row Level Security, Roles, and Grants.The REST API resolves all requests to a single SQL statement leading to fast response times and high throughput.@@ -47,33 +43,6 @@ Reference:- [Docs](https://postgrest.org/)- [Source Code](https://github.com/PostgREST/postgrest)-## GraphQL API [#graphql-api-overview]--Supabase uses [pg_graphql](https://supabase.github.io/pg_graphql/) to expose a GraphQL API endpoint at `https://<project_ref>.supabase.co/graphql/v1/`.-You can introspect and query the GraphQL API of an existing Supabase project within Studio [here](https://supabase.com/dashboard/project/_/api/graphiql),-or navigate there manually at `API Docs > GraphQL > GraphiQL`.--The GraphQL interface is automatically reflected from your database's schema and supports:--- Basic CRUD operations (Create/Read/Update/Delete)-- Support for Tables, Views, Materialized Views, and Foreign Tables-- Arbitrarily deep relationships among tables/views-- User defined computed fields-- The Postgres security model - including Row Level Security, Roles, and Grants.--The GraphQL API resolves all requests in a single round-trip leading to fast response times and high throughput.--Reference:--- [Docs](https://supabase.github.io/pg_graphql/)-- [Source Code](https://github.com/supabase/pg_graphql)--## Realtime API [#realtime-api-overview]--Supabase provides a Realtime API using [Realtime](https://github.com/supabase/realtime). You can use this to listen to database changes over websockets.-Realtime leverages PostgreSQL's built-in logical replication. You can manage your Realtime API simply by managing Postgres publications.-Go to your project's [Replication section](https://supabase.com/dashboard/project/_/database/replication) to get started.-## API URL and KeysYou can find the API URL and Keys in the [Dashboard](https://supabase.com/dashboard/project/_/settings/api).diff --git a/apps/docs/pages/guides/api/creating-routes.mdx b/apps/docs/pages/guides/api/creating-routes.mdxindex 170f843d788..9881edafb89 100644--- a/apps/docs/pages/guides/api/creating-routes.mdx+++ b/apps/docs/pages/guides/api/creating-routes.mdx@@ -19,6 +19,7 @@ This creates a corresponding route `todos` which can accept `GET`, `POST`, `PATCsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -65,17 +66,12 @@ Every Supabase project has a unique API URL. Your API is secured behind an API g/></video>-The REST API and the GraphQL API are both accessible through this URL:--- REST: `https://<project_ref>.supabase.co/rest/v1`-- GraphQL: `https://<project_ref>.supabase.co/graphql/v1`+The REST API is accessible through the URL `https://<project_ref>.supabase.co/rest/v1`Both of these routes require the `anon` key to be passed through an `apikey` header.## Using the API-### REST API-You can interact with your API directly via HTTP requests, or you can use the client libraries which we provide.Let's see how to make a request to the `todos` table which we created in the first step,@@ -86,6 +82,7 @@ using the API URL (`SUPABASE_URL`) and Key (`SUPABASE_ANON_KEY`) we provided:size="small"type="underlined"defaultActiveId="javascript"+ queryGroup="language"><TabPanel id="javascript" label="Javascript">@@ -118,129 +115,6 @@ JS Reference: [select()](/docs/reference/javascript/select),[delete()](/docs/reference/javascript/delete),[rpc()](/docs/reference/javascript/rpc) (call Postgres functions).-### GraphQL API--You can use any GraphQL client with the Supabase GraphQL API. For our GraphQL example we will use [urql](https://formidable.com/open-source/urql/docs/).--<Tabs- scrollable- size="small"- type="underlined"- defaultActiveId="javascript"->-<TabPanel id="javascript" label="Javascript">--```javascript-import { createClient, useQuery } from 'urql'--// Prepare API key and Authorization header-const headers = {- apikey: <SUPABASE_ANON_KEY>,- authorization: `Bearer ${<SUPABASE_ANON_KEY>}`,-}--// Create GraphQL client-// See: https://formidable.com/open-source/urql/docs/basics/react-preact/#setting-up-the-client-const client = createClient({- url: '<SUPABASE_URL>/graphql/v1',- fetchOptions: function createFetchOptions() {- return { headers }- },-})--// Prepare our GraphQL query-const TodosQuery = `- query {- todosCollection {- edges {- node {- id- title- }- }- }- }-`--// Query for the data (React)-const [result, reexecuteQuery] = useQuery({- query: TodosQuery,-})--// Read the result-const { data, fetching, error } = result-```--</TabPanel>-<TabPanel id="curl" label="cURL">--```bash-# Append /graphql/v1/ to your URL, and then use the table name as the route-curl --request POST '<SUPABASE_URL>/graphql/v1' \--H 'apikey: <SUPABASE_ANON_KEY>' \--H 'Authorization: Bearer <SUPABASE_ANON_KEY>' \--H 'Content-Type: application/json' \--d '{ "query":"{ todos(first: 3) { edges { node { id } } } }" }'-```--</TabPanel>-</Tabs>--### Realtime API--By default Realtime is disabled on your database. Let's turn on Realtime for the `todos` table.--<Tabs- scrollable- size="small"- type="underlined"- defaultActiveId="dashboard"->-<TabPanel id="dashboard" label="Dashboard">--1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard.-2. Click on **Replication** in the sidebar.-3. Control which database events are sent by toggling **Insert**, **Update**, and **Delete**.-4. Control which tables broadcast changes by selecting **Source** and toggling each table.--<video width="99%" muted playsInline controls={true}>- <source- src="https://xguihxuzqibwxjnimxev.supabase.co/storage/v1/object/public/videos/docs/api/api-realtime.mp4"- type="video/mp4"- />-</video>--</TabPanel>-<TabPanel id="sql" label="SQL">--```sql-alter- publication supabase_realtime add table todos;-```--</TabPanel>-</Tabs>--From the client, we can listen to any new data that is inserted into the `todos` table:--```javascript-// Initialize the JS client-import { createClient } from '@supabase/supabase-js'-const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY)--// Create a function to handle inserts-const handleInserts = (payload) => {- console.log('Change received!', payload)-}--// Listen to inserts-const { data: todos, error } = await supabase.from('todos').on('INSERT', handleInserts).subscribe()-```--Use [subscribe()](/docs/reference/javascript/subscribe) to listen to database changes.-The Realtime API works through PostgreSQL's replication functionality. Postgres sends database changes to a [publication](/docs/guides/database/replication#publications)-called `supabase_realtime`, and by managing this publication you can control which data is broadcast.-export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Pagediff --git a/apps/docs/pages/guides/api/graphql/graphiql.mdx b/apps/docs/pages/guides/api/graphql/graphiql.mdxdeleted file mode 100644index a3ce41073fd..00000000000--- a/apps/docs/pages/guides/api/graphql/graphiql.mdx+++ /dev/null@@ -1,22 +0,0 @@-import Layout from '~/layouts/DefaultGuideLayout'--export const meta = {- id: 'graphiql',- title: 'GraphiQL documentation',- description: 'Some docs on graphiql.',- video: 'https://www.youtube.com/v/7CqlTU9aOR4',-}--Every Supabase project has a GraphQL Endpoint: `https://<project_ref>.supabase.co/graphql/v1`.--This endpoint is compatible with any GraphiQL implementation that can pass an `apikey` header.-Some suggested applications:--- [paw.cloud](https://paw.cloud)-- [insomnia.rest](https://insomnia.rest)-- [postman.com/graphql](https://www.postman.com/graphql/)-- Self-hosted GraphiQL: GraphiQL can be served through a simple HTML file. See [this discussion](https://github.com/supabase/supabase/discussions/6144) for more details.--export const Page = ({ children }) => <Layout meta={meta} children={children} />--export default Pagediff --git a/apps/docs/pages/guides/api/joins-and-nesting.mdx b/apps/docs/pages/guides/api/joins-and-nesting.mdxindex d64486a8b25..193fa5ecf4d 100644--- a/apps/docs/pages/guides/api/joins-and-nesting.mdx+++ b/apps/docs/pages/guides/api/joins-and-nesting.mdx@@ -17,6 +17,7 @@ Let's use an example database that stores `countries` and `cities`:size="small"type="underlined"defaultActiveId="table"+ queryGroup="output-format"><TabPanel id="table" label="Tables">@@ -76,6 +77,7 @@ The APIs will automatically detect relationships based on the foreign keys:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -155,6 +157,7 @@ In these cases you don't need to explicitly define the joining table (members).size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/api/quickstart.mdx b/apps/docs/pages/guides/api/quickstart.mdxindex 8e7baf747a5..d79c3d696a5 100644--- a/apps/docs/pages/guides/api/quickstart.mdx+++ b/apps/docs/pages/guides/api/quickstart.mdx@@ -29,6 +29,7 @@ We'll create a database table called `todos` for storing tasks. This creates a csize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -148,6 +149,7 @@ We provide a number of [Client Libraries](https://github.com/supabase/supabase#csize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -172,63 +174,6 @@ response = supabase.table('todos').select("*").execute()</TabPanel></Tabs>-### GraphQL--Every table can be accessed through the GraphQL API by switching `/rest/v1` with `/graphql/v1`.--<Tabs- scrollable- size="small"- type="underlined"- defaultActiveId="urql"->-<TabPanel id="urql" label="urql">--```javascript-import { createClient, useQuery } from 'urql'--const URL = '<SUPABASE_URL>/graphql/v1'-const ANON_KEY = '<SUPABASE_ANON_KEY>'--// Prepare API key and Authorization header-const headers = {- apikey: `${ANON_KEY}`,- authorization: `Bearer ${ANON_KEY}`,-}--const client = createClient({- url: URL,- fetchOptions: function createFetchOptions() {- return { headers }- },-})--// Prepare our GraphQL query-const TodosQuery = `- query {- todosCollection {- edges {- node {- id- task- }- }- }- }-`--// Query for the data (React)-const [result, reexecuteQuery] = useQuery({- query: TodosQuery,-})--// Read the result-const { data, fetching, error } = result-```--</TabPanel>-</Tabs>-export const Page = ({ children }) => <Layout meta={meta} children={children} hideToc={true} />export default Pagediff --git a/apps/docs/pages/guides/api/securing-your-api.mdx b/apps/docs/pages/guides/api/securing-your-api.mdxindex e10524f0733..95009ca66cf 100644--- a/apps/docs/pages/guides/api/securing-your-api.mdx+++ b/apps/docs/pages/guides/api/securing-your-api.mdx@@ -19,6 +19,7 @@ To enable RLS on any table:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/api/using-custom-schemas.mdx b/apps/docs/pages/guides/api/using-custom-schemas.mdxindex 87d791aa5d9..c52ef67e29e 100644--- a/apps/docs/pages/guides/api/using-custom-schemas.mdx+++ b/apps/docs/pages/guides/api/using-custom-schemas.mdx@@ -28,6 +28,7 @@ Now you can access these schemas from Serverless APIs:size="small"type="underlined"defaultActiveId="javascript"+ queryGroup="language"><TabPanel id="javascript" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/auth-captcha.mdx b/apps/docs/pages/guides/auth/auth-captcha.mdxindex e36e96262bc..baa4184f96d 100644--- a/apps/docs/pages/guides/auth/auth-captcha.mdx+++ b/apps/docs/pages/guides/auth/auth-captcha.mdx@@ -25,6 +25,7 @@ Supabase provides you with the option of adding captcha to your sign-in, sign-upsize="small"type="underlined"defaultActiveId="hcaptcha-1"+ queryGroup="captcha-method"><TabPanel id="hcaptcha-1" label="HCaptcha">Go to the [hCaptcha](https://www.hcaptcha.com/) website and sign up for an account. On the welcome page, copy the **Sitekey** and **Secret key**.@@ -66,6 +67,7 @@ The frontend requires some changes to provide the captcha on-screen for the usersize="small"type="underlined"defaultActiveId="hcaptcha-2"+ queryGroup="captcha-method"><TabPanel id="hcaptcha-2" label="HCaptcha">diff --git a/apps/docs/pages/guides/auth/auth-email.mdx b/apps/docs/pages/guides/auth/auth-email.mdxindex 2aa114b48a2..827b27aa19f 100644--- a/apps/docs/pages/guides/auth/auth-email.mdx+++ b/apps/docs/pages/guides/auth/auth-email.mdx@@ -32,6 +32,7 @@ See the [self-hosting docs](/docs/guides/hosting/overview#configuration) for detsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -68,6 +69,7 @@ Future<void> signInWithEmail() async {size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdxindex fc23df156a4..81f883336d9 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx@@ -45,6 +45,7 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-keysize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -114,6 +115,7 @@ The `Code Exchange` API route is required for the [server-side auth flow](https:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -303,6 +305,7 @@ You can use the server supabase client to run [row level security](/docs/learn/asize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -406,6 +409,7 @@ When using third-party auth providers, sessions are initiated with an additionalsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -521,6 +525,7 @@ Create a server supabase client to retrieve the logged in user's session:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -666,6 +671,7 @@ Use `createPagesServerClient` within your `NextApiHandler`:size="small"type="underlined"defaultActiveId="before"+ queryGroup="migration-side"><TabPanel id="before" label="Before">@@ -720,6 +726,7 @@ Use `createPagesServerClient` within `getServerSideProps`:size="small"type="underlined"defaultActiveId="before"+ queryGroup="migration-side"><TabPanel id="before" label="Before">@@ -779,6 +786,7 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {size="small"type="underlined"defaultActiveId="before"+ queryGroup="migration-side"><TabPanel id="before" label="Before">diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdxindex 0aaafb1f237..c5b7a313484 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx@@ -88,6 +88,7 @@ Next.js [Middleware](https://nextjs.org/docs/app/building-your-application/routisize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -152,6 +153,7 @@ To make this work with Next.js, we create a callback Route Handler that performssize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -245,10 +247,11 @@ Client Components can be used to trigger the authentication process from event hsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/login.jsx+```jsx app/login/page.jsx'use client'import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'@@ -306,7 +309,7 @@ export default function Login() {<TabPanel id="ts" label="TypeScript">-```tsx app/login.tsx+```tsx app/login/page.tsx'use client'import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'@@ -382,10 +385,11 @@ The combination of [Server Components](https://nextjs.org/docs/getting-started/rsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/auth/sign-up.js+```jsx app/auth/sign-up/route.jsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -417,7 +421,7 @@ export async function POST(request) {<TabPanel id="ts" label="TypeScript">-```tsx app/auth/sign-up.ts+```tsx app/auth/sign-up/route.tsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -469,10 +473,11 @@ Returning a `301` status redirects from a POST to a GET routesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/auth/login.js+```jsx app/auth/login/route.jsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -501,7 +506,7 @@ export async function POST(request) {<TabPanel id="ts" label="TypeScript">-```tsx app/auth/login.ts+```tsx app/auth/login/route.tsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -550,10 +555,11 @@ Returning a `301` status redirects from a POST to a GET routesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/auth/logout.js+```jsx app/auth/logout/route.jsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -576,7 +582,7 @@ export async function POST(request) {<TabPanel id="ts" label="TypeScript">-```tsx app/auth/logout.ts+```tsx app/auth/logout/route.tsimport { createRouteHandlerClient } from '@supabase/auth-helpers-nextjs'import { cookies } from 'next/headers'import { NextResponse } from 'next/server'@@ -613,10 +619,11 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javascsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/login.jsx+```jsx app/login/page.jsxexport default function Login() {return (<form action="/auth/login" method="post">@@ -636,7 +643,7 @@ export default function Login() {<TabPanel id="ts" label="TypeScript">-```tsx app/login.tsx+```tsx app/login/page.tsxexport default function Login() {return (<form action="/auth/login" method="post">@@ -684,6 +691,7 @@ This allows for the Supabase client to be easily instantiated in the correct consize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -788,6 +796,7 @@ In order to use Supabase in Server Components, you need to have implemented thesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -862,10 +871,11 @@ Next.js Server Actions are currently in `alpha` so may change without notice.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">-```jsx app/new-post.jsx+```jsx app/new-post/page.jsximport { cookies } from 'next/headers'import { createServerActionClient } from '@supabase/auth-helpers-nextjs'import { revalidatePath } from 'next/cache'@@ -894,7 +904,7 @@ export default async function NewTodo() {<TabPanel id="ts" label="TypeScript">-```tsx app/new-post.tsx+```tsx app/new-post/page.tsximport { cookies } from 'next/headers'import { createServerActionClient } from '@supabase/auth-helpers-nextjs'import { revalidatePath } from 'next/cache'@@ -948,6 +958,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javascsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -1013,6 +1024,7 @@ A route can be configured to use the Edge Runtime by exporting a `runtime` variasize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -1076,6 +1088,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javascsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -1147,6 +1160,7 @@ Server Components and Route Handlers are static by default - data is fetched oncsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -1200,6 +1214,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javascsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx b/apps/docs/pages/guides/auth/auth-helpers/remix.mdxindex e1769bca84d..e002fae5c83 100644--- a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/remix.mdx@@ -48,6 +48,7 @@ The `Code Exchange` route is required for the [server-side auth flow](https://susize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -128,6 +129,7 @@ Loader functions run on the server immediately before the component is rendered.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -203,6 +205,7 @@ Action functions run on the server and respond to HTTP requests to a route, othesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -303,6 +306,7 @@ Since our environment variables are not available client-side, we need to plumbsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -391,6 +395,7 @@ Let's pipe that through from our loader.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -470,6 +475,7 @@ And then use the revalidator, inside the `onAuthStateChange` hook.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -543,6 +549,7 @@ Now we can use our outlet context to access our single instance of Supabase andsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -630,6 +637,7 @@ export default function Login() {size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdxindex b38ac77adf7..9f815998603 100644--- a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx@@ -36,6 +36,7 @@ PUBLIC_SUPABASE_ANON_KEY=your-anon-keysize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -130,6 +131,7 @@ The `Code Exchange` route is required for the [server-side auth flow](https://susize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -218,6 +220,7 @@ To make the session available across the UI, including pages and layouts, it issize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -254,6 +257,7 @@ To utilize Supabase in shared load functions and within pages, it is essential tsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -411,6 +415,7 @@ We can access the supabase instance in our `+page.svelte` file through the datasize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -581,6 +586,7 @@ protect multiple routes at once.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -786,6 +792,7 @@ In version 0.9 we now setup our Supabase client for the server inside of a `hooksize="small"type="underlined"defaultActiveId="older-0.8"+ queryGroup="migration-version"><TabPanel id="older-0.8" label="0.8.x">@@ -848,6 +855,7 @@ In order to use the Supabase library in your client code you will need to setupsize="small"type="underlined"defaultActiveId="older-0.8"+ queryGroup="migration-version"><TabPanel id="older-0.8" label="0.8.x">@@ -944,6 +952,7 @@ Since version 0.9 relies on `hooks.server.ts` to setup our client, we no longersize="small"type="underlined"defaultActiveId="older-0-8"+ queryGroup="migration-version"><TabPanel id="older-0-8" label="0.8.x">@@ -1002,6 +1011,7 @@ declare global {size="small"type="underlined"defaultActiveId="older-0-8"+ queryGroup="migration-version"><TabPanel id="older-0-8" label="0.8.x">@@ -1084,6 +1094,7 @@ export const load: PageLoad = async ({ parent }) => {size="small"type="underlined"defaultActiveId="older-0-8"+ queryGroup="migration-version"><TabPanel id="older-0-8" label="0.8.x">@@ -1136,6 +1147,7 @@ export const GET: RequestHandler = async ({ locals: { supabase, getSession } })size="small"type="underlined"defaultActiveId="older-0.7"+ queryGroup="migration-version"><TabPanel id="older-0.7" label="0.7.x">@@ -1184,6 +1196,7 @@ export const supabaseClient = createClient(env.PUBLIC_SUPABASE_URL, env.PUBLIC_Ssize="small"type="underlined"defaultActiveId="older-0.7"+ queryGroup="migration-version"><TabPanel id="older-0.7" label="0.7.x">@@ -1240,6 +1253,7 @@ export const supabaseClient = createClient(env.PUBLIC_SUPABASE_URL, env.PUBLIC_Ssize="small"type="underlined"defaultActiveId="older-0-7"+ queryGroup="migration-version"><TabPanel id="older-0-7" label="0.7.x">@@ -1287,6 +1301,7 @@ import '$lib/db'size="small"type="underlined"defaultActiveId="older-0-7"+ queryGroup="migration-version"><TabPanel id="older-0-7" label="0.7.x">@@ -1344,6 +1359,7 @@ declare namespace App {size="small"type="underlined"defaultActiveId="older-0-7"+ queryGroup="migration-version"><TabPanel id="older-0-7" label="0.7.x">@@ -1422,6 +1438,7 @@ export const load: PageLoad = async (event) => {size="small"type="underlined"defaultActiveId="older-0-7"+ queryGroup="migration-version"><TabPanel id="older-0-7" label="0.7.x">@@ -1483,6 +1500,7 @@ The environment variable prefix is now `PUBLIC_` instead of `VITE_` (e.g., `VITEsize="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1532,6 +1550,7 @@ setupSupabaseHelpers({size="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1580,6 +1599,7 @@ The `@supabase/auth-helpers-svelte` library is no longer required as the `@supabsize="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1634,6 +1654,7 @@ export const handle = sequence(auth(), yourHandler)size="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1691,6 +1712,7 @@ declare namespace App {size="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1733,6 +1755,7 @@ declare namespace App {size="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">@@ -1809,6 +1832,7 @@ export const load: PageLoad = withAuth(async ({ session, getSupabaseClient }) =>size="small"type="underlined"defaultActiveId="older"+ queryGroup="migration-version"><TabPanel id="older" label="0.6.11 and below">diff --git a/apps/docs/pages/guides/auth/auth-magic-link.mdx b/apps/docs/pages/guides/auth/auth-magic-link.mdxindex 8f4b407485d..3367d833365 100644--- a/apps/docs/pages/guides/auth/auth-magic-link.mdx+++ b/apps/docs/pages/guides/auth/auth-magic-link.mdx@@ -33,6 +33,7 @@ When making use of Magic Links with [the PKCE Flow](https://supabase.com/blog/susize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">When your user signs in, call [signInWithOtp()](/docs/reference/javascript/auth-signinwithotp) with their email address:@@ -67,6 +68,7 @@ Future<void> signInWithEmail() async {size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:diff --git a/apps/docs/pages/guides/auth/phone-login/messagebird.mdx b/apps/docs/pages/guides/auth/phone-login/messagebird.mdxindex ad70cc72d52..c0de63b0366 100644--- a/apps/docs/pages/guides/auth/phone-login/messagebird.mdx+++ b/apps/docs/pages/guides/auth/phone-login/messagebird.mdx@@ -83,6 +83,7 @@ Using supabase-js on the client you'll want to use the same `signUp` method thatsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -118,6 +119,7 @@ You should present a form to the user so they can input the 6 digit pin, then sesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -165,6 +167,7 @@ Also now that the mobile has been verified, the user can use the number and passsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -202,6 +205,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone`size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -233,6 +237,7 @@ The second step is the same as the previous section, you need to collect the 6-dsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/phone-login/twilio.mdx b/apps/docs/pages/guides/auth/phone-login/twilio.mdxindex 7489c644267..098a2c37d75 100644--- a/apps/docs/pages/guides/auth/phone-login/twilio.mdx+++ b/apps/docs/pages/guides/auth/phone-login/twilio.mdx@@ -129,6 +129,7 @@ Using supabase-js on the client you'll want to use the same `signUp` method thatsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -164,6 +165,7 @@ You should present a form to the user so they can input the 6 digit pin, then sesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -212,6 +214,7 @@ Also now that the mobile has been verified, the user can use the number and passsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -249,6 +252,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone`size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -280,6 +284,7 @@ The second step is the same as the previous section, you need to collect the 6-dsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/phone-login/vonage.mdx b/apps/docs/pages/guides/auth/phone-login/vonage.mdxindex 69a244d5acb..f51d1c2c0e1 100644--- a/apps/docs/pages/guides/auth/phone-login/vonage.mdx+++ b/apps/docs/pages/guides/auth/phone-login/vonage.mdx@@ -76,6 +76,7 @@ Using supabase-js on the client you'll want to use the same `signUp` method thatsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -111,6 +112,7 @@ You should present a form to the user so they can input the 6 digit pin, then sesize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -158,6 +160,7 @@ Also now that the mobile has been verified, the user can use the number and passsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -195,6 +198,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone`size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -226,6 +230,7 @@ The second step is the same as the previous section, you need to collect the 6-dsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx b/apps/docs/pages/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdxindex 9e41fe99ede..91b59a74e27 100644--- a/apps/docs/pages/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx+++ b/apps/docs/pages/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx@@ -12,7 +12,7 @@ export const meta = {The Auth Helpers will assist you in implementing user authentication within your server-side rendering (SSR) framework.-<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs">+<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs" queryGroup="framework"><TabPanel id="nextjs" label="NextJS">@@ -36,7 +36,7 @@ npm install @supabase/auth-helpers-sveltekit @supabase/supabase-jsCreate an `.env.local` file in your project root directory. You can get your `SITE_URL` and `ANON_KEY` from inside of the [dashboard](https://supabase.com/dashboard/project/_/settings/api).-<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs">+<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs" queryGroup="framework"><TabPanel id="nextjs" label="NextJS">@@ -65,6 +65,7 @@ When using the Supabase client on the server, you must perform extra steps to ensize="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">Next.js Server Components allow you to read a cookie but not write back to it. Middleware on the other hand allow you to both read and write to cookies.@@ -128,6 +129,7 @@ In order to use the updated email links we will need to setup a endpoint for versize="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">Create a new file at `app/auth/confirm/route.js` and populate with the following:diff --git a/apps/docs/pages/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx b/apps/docs/pages/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdxindex 60f6fb53a1c..07e7cbb9a07 100644--- a/apps/docs/pages/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx+++ b/apps/docs/pages/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx@@ -17,6 +17,7 @@ The Auth Helpers assist with user authentication within server-side rendering (Ssize="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">@@ -43,6 +44,7 @@ Create an `.env.local` file in your project root directory. You can get your `SIsize="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">@@ -71,6 +73,7 @@ For SSR, the Supabase client requires extra steps to ensure the user's auth sesssize="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">Next.js Server Components allow you to read a cookie but not write back to it. Middleware on the other hand allow you to both read and write to cookies.@@ -134,6 +137,7 @@ In order to use OAuth we will need to setup a endpoint for the `code` exchange,size="small"type="underlined"defaultActiveId="nextjs"+ queryGroup="framework"><TabPanel id="nextjs" label="NextJS">Create a new file at `app/auth/callback/route.js` and populate with the following:diff --git a/apps/docs/pages/guides/cli/getting-started.mdx b/apps/docs/pages/guides/cli/getting-started.mdxindex 92861f08158..3b54b1a5d77 100644--- a/apps/docs/pages/guides/cli/getting-started.mdx+++ b/apps/docs/pages/guides/cli/getting-started.mdx@@ -19,6 +19,7 @@ The Supabase CLI provides tools to develop your project locally, deploy to the Ssize="small"type="underlined"defaultActiveId="npm"+ queryGroup="platform"><TabPanel id="npm" label="npm">@@ -86,6 +87,7 @@ When a new [version](https://github.com/supabase/cli/releases) is released, yousize="small"type="underlined"defaultActiveId="npm"+ queryGroup="platform"><TabPanel id="npm" label="npm">diff --git a/apps/docs/pages/guides/cli/local-development.mdx b/apps/docs/pages/guides/cli/local-development.mdxindex d72fee34c31..97958a93149 100644--- a/apps/docs/pages/guides/cli/local-development.mdx+++ b/apps/docs/pages/guides/cli/local-development.mdx@@ -95,6 +95,7 @@ You can now visit your local Dashboard at [http://localhost:54323](http://localhsize="small"type="underlined"defaultActiveId="postgres"+ queryGroup="access-method"><TabPanel id="postgres" label="Postgres">diff --git a/apps/docs/pages/guides/cli/managing-environments.mdx b/apps/docs/pages/guides/cli/managing-environments.mdxindex 59bd4ed51fe..d84b22990e4 100644--- a/apps/docs/pages/guides/cli/managing-environments.mdx+++ b/apps/docs/pages/guides/cli/managing-environments.mdx@@ -185,6 +185,7 @@ Create the following files inside the `.github/workflows` directory:size="small"type="underlined"defaultActiveId="ci"+ queryGroup="environment"><TabPanel id="ci" label="ci.yaml">diff --git a/apps/docs/pages/guides/database/arrays.mdx b/apps/docs/pages/guides/database/arrays.mdxindex 0ac61fcd68c..769c49ad3bf 100644--- a/apps/docs/pages/guides/database/arrays.mdx+++ b/apps/docs/pages/guides/database/arrays.mdx@@ -17,6 +17,7 @@ Create a test table with a text array (an array of strings):size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -46,6 +47,7 @@ create table arraytest (size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -82,6 +84,7 @@ const { data, error } = await supabasesize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -119,6 +122,7 @@ PostgreSQL uses 1-based indexing (e.g., `textarray[1]` is the first item in thesize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/extensions.mdx b/apps/docs/pages/guides/database/extensions.mdxindex 68271fbc284..ff16218d2df 100644--- a/apps/docs/pages/guides/database/extensions.mdx+++ b/apps/docs/pages/guides/database/extensions.mdx@@ -16,6 +16,7 @@ Supabase has pre-installed some of the most useful open source extensions.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/http.mdx b/apps/docs/pages/guides/database/extensions/http.mdxindex 89ad11ae91f..166e9169a3e 100644--- a/apps/docs/pages/guides/database/extensions/http.mdx+++ b/apps/docs/pages/guides/database/extensions/http.mdx@@ -42,6 +42,7 @@ You can use the `http` extension to make these network requests from Postgres.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/hypopg.mdx b/apps/docs/pages/guides/database/extensions/hypopg.mdxindex b272e9e40e0..aa247933db3 100644--- a/apps/docs/pages/guides/database/extensions/hypopg.mdx+++ b/apps/docs/pages/guides/database/extensions/hypopg.mdx@@ -17,6 +17,7 @@ The motivation for HypoPG is to allow users to quickly search for an index to imsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_cron.mdx b/apps/docs/pages/guides/database/extensions/pg_cron.mdxindex f4f1739ade3..ac35e507c21 100644--- a/apps/docs/pages/guides/database/extensions/pg_cron.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_cron.mdx@@ -18,6 +18,7 @@ The `pg_cron` extension is a simple cron-based job scheduler for PostgreSQL thatsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_graphql.mdx b/apps/docs/pages/guides/database/extensions/pg_graphql.mdxindex 1684776d492..9b0cf116ec7 100644--- a/apps/docs/pages/guides/database/extensions/pg_graphql.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_graphql.mdx@@ -21,6 +21,7 @@ For more information about how the SQL schema is reflected into a GraphQL schemasize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_hashids.mdx b/apps/docs/pages/guides/database/extensions/pg_hashids.mdxindex 2b413c1533f..45baba5a227 100644--- a/apps/docs/pages/guides/database/extensions/pg_hashids.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_hashids.mdx@@ -15,6 +15,7 @@ export const meta = {size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_jsonschema.mdx b/apps/docs/pages/guides/database/extensions/pg_jsonschema.mdxindex 1fba7fa77fc..b6cd40f8dfa 100644--- a/apps/docs/pages/guides/database/extensions/pg_jsonschema.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_jsonschema.mdx@@ -15,6 +15,7 @@ export const meta = {size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_net.mdx b/apps/docs/pages/guides/database/extensions/pg_net.mdxindex 9dcfdc64f17..648ebbbe69a 100644--- a/apps/docs/pages/guides/database/extensions/pg_net.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_net.mdx@@ -23,6 +23,7 @@ It differs from the `http` extension in that it is asynchronous by default. Thissize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_repack.mdx b/apps/docs/pages/guides/database/extensions/pg_repack.mdxindex aaab00c01ed..fc62c10b0fc 100644--- a/apps/docs/pages/guides/database/extensions/pg_repack.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_repack.mdx@@ -33,6 +33,7 @@ Get started with pg_repack by enabling the extension in the Supabase Dashboard.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx b/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdxindex 8e050767f7d..49c36649b73 100644--- a/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_stat_monitor.mdx@@ -21,6 +21,7 @@ For more information on query optimization, check out the [query performance guisize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pg_stat_statements.mdx b/apps/docs/pages/guides/database/extensions/pg_stat_statements.mdxindex 34cbb3af35b..c2f7e347ea1 100644--- a/apps/docs/pages/guides/database/extensions/pg_stat_statements.mdx+++ b/apps/docs/pages/guides/database/extensions/pg_stat_statements.mdx@@ -31,6 +31,7 @@ For more information on query optimization, check out the [query performance guisize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgaudit.mdx b/apps/docs/pages/guides/database/extensions/pgaudit.mdxindex 3b780c1e4e8..e3a478756f5 100644--- a/apps/docs/pages/guides/database/extensions/pgaudit.mdx+++ b/apps/docs/pages/guides/database/extensions/pgaudit.mdx@@ -17,6 +17,7 @@ PGAudit grants fine grain control over which statements and objects are emittedsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgjwt.mdx b/apps/docs/pages/guides/database/extensions/pgjwt.mdxindex fcc0bc9d427..e4d5b7b3f88 100644--- a/apps/docs/pages/guides/database/extensions/pgjwt.mdx+++ b/apps/docs/pages/guides/database/extensions/pgjwt.mdx@@ -15,6 +15,7 @@ The [pgjwt](https://github.com/michelp/pgjwt) (PostgreSQL JSON Web Token) extenssize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgroonga.mdx b/apps/docs/pages/guides/database/extensions/pgroonga.mdxindex 8130dd0ef71..970b79b04ac 100644--- a/apps/docs/pages/guides/database/extensions/pgroonga.mdx+++ b/apps/docs/pages/guides/database/extensions/pgroonga.mdx@@ -15,6 +15,7 @@ export const meta = {size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgrouting.mdx b/apps/docs/pages/guides/database/extensions/pgrouting.mdxindex 34b9612bb39..bce863e3d7e 100644--- a/apps/docs/pages/guides/database/extensions/pgrouting.mdx+++ b/apps/docs/pages/guides/database/extensions/pgrouting.mdx@@ -29,6 +29,7 @@ The core functionality of `pgRouting` is a set of path finding algorithms includsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgsodium.mdx b/apps/docs/pages/guides/database/extensions/pgsodium.mdxindex 15028024222..618f794516f 100644--- a/apps/docs/pages/guides/database/extensions/pgsodium.mdx+++ b/apps/docs/pages/guides/database/extensions/pgsodium.mdx@@ -60,6 +60,7 @@ It also enables some Postgres specific features including:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgtap.mdx b/apps/docs/pages/guides/database/extensions/pgtap.mdxindex 991d15097b5..435d2ed8e33 100644--- a/apps/docs/pages/guides/database/extensions/pgtap.mdx+++ b/apps/docs/pages/guides/database/extensions/pgtap.mdx@@ -22,6 +22,7 @@ Let's cover some basic concepts:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/pgvector.mdx b/apps/docs/pages/guides/database/extensions/pgvector.mdxindex 534bbe63f99..d3fd133956e 100644--- a/apps/docs/pages/guides/database/extensions/pgvector.mdx+++ b/apps/docs/pages/guides/database/extensions/pgvector.mdx@@ -30,6 +30,7 @@ This is particularly useful if you're building on top of OpenAI's [GPT-3](https:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/plpgsql_check.mdx b/apps/docs/pages/guides/database/extensions/plpgsql_check.mdxindex 647ca16fc03..e0f87e3f6fa 100644--- a/apps/docs/pages/guides/database/extensions/plpgsql_check.mdx+++ b/apps/docs/pages/guides/database/extensions/plpgsql_check.mdx@@ -15,6 +15,7 @@ export const meta = {size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/plv8.mdx b/apps/docs/pages/guides/database/extensions/plv8.mdxindex 77c55e87d7d..ae1fd4b018d 100644--- a/apps/docs/pages/guides/database/extensions/plv8.mdx+++ b/apps/docs/pages/guides/database/extensions/plv8.mdx@@ -22,6 +22,7 @@ It can be used for database functions, triggers, queries and more.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -69,6 +70,7 @@ You can call `plv8` functions like any other Postgres function:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/extensions/postgis.mdx b/apps/docs/pages/guides/database/extensions/postgis.mdxindex 97c8f8438ff..b1fc3cc5ab6 100644--- a/apps/docs/pages/guides/database/extensions/postgis.mdx+++ b/apps/docs/pages/guides/database/extensions/postgis.mdx@@ -23,6 +23,7 @@ You can get started with PostGIS by enabling the PostGIS extension in your Supabsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -75,6 +76,7 @@ You can insert geographical data through SQL or through our API.size="small"type="underlined"defaultActiveId="data"+ queryGroup="language"><TabPanel id="data" label="Data">@@ -173,6 +175,7 @@ You can call this function from your client using `rpc()` like this:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -251,6 +254,7 @@ You can call this function from your client using `rpc()` like this:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/database/extensions/rum.mdx b/apps/docs/pages/guides/database/extensions/rum.mdxindex bf83786732c..e1ebfeff549 100644--- a/apps/docs/pages/guides/database/extensions/rum.mdx+++ b/apps/docs/pages/guides/database/extensions/rum.mdx@@ -36,6 +36,7 @@ You can get started with rum by enabling the extension in your Supabase dashboarsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/timescaledb.mdx b/apps/docs/pages/guides/database/extensions/timescaledb.mdxindex b6daaed4814..cc117e86469 100644--- a/apps/docs/pages/guides/database/extensions/timescaledb.mdx+++ b/apps/docs/pages/guides/database/extensions/timescaledb.mdx@@ -17,6 +17,7 @@ export const meta = {size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdxindex f07cde1ede4..c48e4e69549 100644--- a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx+++ b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx@@ -20,6 +20,7 @@ This makes them particularly well suited as Primary Keys. It is occasionally refsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx b/apps/docs/pages/guides/database/extensions/wrappers/overview.mdxindex f365a390c1d..bb6b6b31888 100644--- a/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx+++ b/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx@@ -33,6 +33,7 @@ fromsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/database/full-text-search.mdx b/apps/docs/pages/guides/database/full-text-search.mdxindex 14981b182e3..cca11594d4d 100644--- a/apps/docs/pages/guides/database/full-text-search.mdx+++ b/apps/docs/pages/guides/database/full-text-search.mdx@@ -28,6 +28,7 @@ For this guide we'll use the following example data:size="small"type="underlined"defaultActiveId="data"+ queryGroup="example-view"><TabPanel id="data" label="Data">@@ -108,6 +109,7 @@ Take the following example:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -145,6 +147,7 @@ example above:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -185,6 +188,7 @@ To find all `books` where the `description` contain the word `big`:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -237,6 +241,7 @@ To find all `books` where `description` or `title` contain the word `little`:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -302,6 +307,7 @@ To find all `books` where `description` contains BOTH of the words `little` andsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -354,6 +360,7 @@ To find all `books` where `description` contain ANY of the words `little` or `bisize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -418,6 +425,7 @@ to ensure that the index is updated any time the values in the `title` and `descsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="example-view"><TabPanel id="sql" label="SQL">@@ -456,6 +464,7 @@ Now that we've created and populated our index, we can search it using the samesize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -510,6 +519,7 @@ For example, to find the phrase `big dreams`, where the a match for "big" is folsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -552,6 +562,7 @@ We can also use the `<->` to find words within a certain distance of eachother.size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -597,6 +608,7 @@ For example, to find records that have the word `big` but not `little`:size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/functions.mdx b/apps/docs/pages/guides/database/functions.mdxindex 7d55d1e7e01..fe52e20e603 100644--- a/apps/docs/pages/guides/database/functions.mdx+++ b/apps/docs/pages/guides/database/functions.mdx@@ -69,6 +69,7 @@ After the Function is created, we have several ways of "executing" the functionsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -109,6 +110,7 @@ For example, if we had a database with some Star Wars data inside:size="small"type="underlined"defaultActiveId="data"+ queryGroup="example-view"><TabPanel id="data" label="Data">@@ -181,6 +183,7 @@ Because this function returns a table set, we can also apply filters and selectosize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -237,6 +240,7 @@ Once again, you can execute this function either inside your database using a `ssize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/json.mdx b/apps/docs/pages/guides/database/json.mdxindex b7f35e96e58..ddaf6520db1 100644--- a/apps/docs/pages/guides/database/json.mdx+++ b/apps/docs/pages/guides/database/json.mdx@@ -31,6 +31,7 @@ Don't go overboard with `json/jsonb` columns. They are a useful tool, but most osize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -75,6 +76,7 @@ You can insert JSON data in the same way that you insert any other data. The datsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -191,6 +193,7 @@ Postgres support a range of [JSON functions and operators](https://www.postgresqsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/managing-timezones.mdx b/apps/docs/pages/guides/database/managing-timezones.mdxindex fdafda70537..f9aee650b8d 100644--- a/apps/docs/pages/guides/database/managing-timezones.mdx+++ b/apps/docs/pages/guides/database/managing-timezones.mdx@@ -17,6 +17,7 @@ This is because it makes it much easier to calculate differences between timezonsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -42,6 +43,7 @@ Get a full list of timezones supported by your database. This will return the fosize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -63,6 +65,7 @@ Use `ilike` (case insensitive search) to find specific timezones.size="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/postgres/configuration.mdx b/apps/docs/pages/guides/database/postgres/configuration.mdxindex 77305c0e9f5..0f566e0c0ca 100644--- a/apps/docs/pages/guides/database/postgres/configuration.mdx+++ b/apps/docs/pages/guides/database/postgres/configuration.mdx@@ -47,6 +47,7 @@ This is because it makes it much easier to calculate differences between timezonsize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -72,6 +73,7 @@ Get a full list of timezones supported by your database. This will return the fosize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -93,6 +95,7 @@ Use `ilike` (case insensitive search) to find specific timezones.size="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">diff --git a/apps/docs/pages/guides/database/tables.mdx b/apps/docs/pages/guides/database/tables.mdxindex 223874fbd4f..e80c5846cde 100644--- a/apps/docs/pages/guides/database/tables.mdx+++ b/apps/docs/pages/guides/database/tables.mdx@@ -38,6 +38,7 @@ and run the SQL queries yourself.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">@@ -180,6 +181,7 @@ Use the "Bulk Loading" instructions if you are loading large data sets.size="small"type="underlined"defaultActiveId="sql"+ queryGroup="language"><TabPanel id="sql" label="SQL">@@ -291,6 +293,7 @@ For example if you had the following situations:size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdxindex 36cd58b94e3..f3831491c88 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx@@ -59,6 +59,7 @@ That is it on Supabase's end and the rest are platform specific settings:size="small"type="underlined"defaultActiveId="ios"+ queryGroup="platform"><TabPanel id="ios" label="iOS">Edit the `ios/Runner/Info.plist` file.diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdxindex a771e0f5571..79b9aaf9391 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx@@ -29,6 +29,7 @@ We can use [`create-next-app`](https://nextjs.org/docs/getting-started) to initisize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -84,6 +85,7 @@ npm install @supabase/auth-helpers-nextjs @supabase/supabase-jssize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -186,6 +188,7 @@ Create an `AuthForm` client side component with the `Auth` component rendered wisize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -286,6 +289,7 @@ In the following code snippet, we perform the following steps:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -340,6 +344,7 @@ Let's create a route handler to handle the signout from the server side.size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -406,6 +411,7 @@ Let's create a new component for that called `AccountForm` within the `app/accousize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -676,6 +682,7 @@ Create a account page for the `AccountForm` component we just createdsize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">@@ -742,6 +749,7 @@ Let's create an avatar widget for the user so that they can upload a profile phosize="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdxindex 91a53b8cb3b..b3c30daa25e 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx@@ -260,6 +260,7 @@ In the following code snippet, we perform the following steps:size="small"type="underlined"defaultActiveId="js"+ queryGroup="language"><TabPanel id="js" label="JavaScript">diff --git a/apps/docs/pages/guides/graphql/[[...slug]].tsx b/apps/docs/pages/guides/graphql/[[...slug]].tsxnew file mode 100644index 00000000000..ed8ce6fb745--- /dev/null+++ b/apps/docs/pages/guides/graphql/[[...slug]].tsx@@ -0,0 +1,152 @@+import { CodeHikeConfig, remarkCodeHike } from '@code-hike/mdx'+import { GetStaticPaths, GetStaticProps } from 'next'+import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote'+import { serialize } from 'next-mdx-remote/serialize'+import { isAbsolute, relative } from 'path'+import rehypeSlug from 'rehype-slug'+import remarkGfm from 'remark-gfm'+import codeHikeTheme from 'config/code-hike.theme.json' assert { type: 'json' }+import components from '~/components'+import Layout from '~/layouts/DefaultGuideLayout'+import { UrlTransformFunction, linkTransform } from '~/lib/mdx/plugins/rehypeLinkTransform'+import remarkMkDocsAdmonition from '~/lib/mdx/plugins/remarkAdmonition'+import { removeTitle } from '~/lib/mdx/plugins/remarkRemoveTitle'+import remarkPyMdownTabs from '~/lib/mdx/plugins/remarkTabs'++// We fetch these docs at build time from an external repo+const org = 'supabase'+const repo = 'pg_graphql'+const branch = 'master'+const docsDir = 'docs'+const externalSite = 'https://supabase.github.io/pg_graphql'++// Each external docs page is mapped to a local page+const pageMap = [+ {+ meta: {+ id: 'graphql-overview',+ title: 'GraphQL',+ },+ remoteFile: 'supabase.md',+ },+ {+ slug: 'api',+ meta: {+ id: 'graphql-api',+ title: 'GraphQL API',+ },+ remoteFile: 'api.md',+ },+]++interface PGGraphQLDocsProps {+ source: MDXRemoteSerializeResult+ meta: {+ title: string+ description?: string+ }+}++export default function PGGraphQLDocs({ source, meta }: PGGraphQLDocsProps) {+ return (+ <Layout meta={meta}>+ <MDXRemote {...source} components={components} />+ </Layout>+ )+}++/**+ * Fetch markdown from external repo and transform links+ */+export const getStaticProps: GetStaticProps<PGGraphQLDocsProps> = async ({ params }) => {+ const [slug] = params.slug ?? []+ const page = pageMap.find((page) => page.slug === slug)++ if (!page) {+ throw new Error(`No page mapping found for slug '${slug}'`)+ }++ const { remoteFile, meta } = page++ const response = await fetch(+ `https://raw.githubusercontent.com/${org}/${repo}/${branch}/${docsDir}/${remoteFile}`+ )++ const source = await response.text()++ const urlTransform: UrlTransformFunction = (url) => {+ try {+ const externalSiteUrl = new URL(externalSite)++ const placeholderHostname = 'placeholder'+ const { hostname, pathname, hash } = new URL(url, `http://${placeholderHostname}`)++ // Don't modify a url with a FQDN or a url that's only a hash+ if (hostname !== placeholderHostname || pathname === '/') {+ return url+ }++ const getRelativePath = () => {+ if (pathname.endsWith('.md')) {+ return pathname.replace(/\.md$/, '')+ }+ if (isAbsolute(url)) {+ return relative(externalSiteUrl.pathname, pathname)+ }+ return pathname+ }++ const relativePath = getRelativePath().replace(/^\//, '')++ const page = pageMap.find(({ remoteFile }) => `${relativePath}.md` === remoteFile)++ // If we have a mapping for this page, use the mapped path+ if (page) {+ return page.slug + hash+ }++ // If we don't have this page in our docs, link to original docs+ return `${externalSite}/${relativePath}${hash}`+ } catch (err) {+ console.error('Error transforming markdown URL', err)+ return url+ }+ }++ const codeHikeOptions: CodeHikeConfig = {+ theme: codeHikeTheme,+ lineNumbers: true,+ showCopyButton: true,+ skipLanguages: [],+ autoImport: false,+ }++ const mdxSource = await serialize(source, {+ scope: {+ chCodeConfig: codeHikeOptions,+ },+ mdxOptions: {+ remarkPlugins: [+ remarkGfm,+ remarkMkDocsAdmonition,+ remarkPyMdownTabs,+ [removeTitle, meta.title],+ [remarkCodeHike, codeHikeOptions],+ ],+ rehypePlugins: [[linkTransform, urlTransform], rehypeSlug],+ },+ })++ return { props: { source: mdxSource, meta } }+}++export const getStaticPaths: GetStaticPaths = async () => {+ return {+ paths: pageMap.map(({ slug }) => ({+ params: {+ slug: slug ? [slug] : [],+ },+ })),+ fallback: false,+ }+}diff --git a/apps/docs/pages/guides/platform/going-into-prod.mdx b/apps/docs/pages/guides/platform/going-into-prod.mdxindex 289e437cda0..6f9ebf86fb7 100644--- a/apps/docs/pages/guides/platform/going-into-prod.mdx+++ b/apps/docs/pages/guides/platform/going-into-prod.mdx@@ -36,7 +36,7 @@ After developing your project and deciding it's Production Ready, you should run- Perform load testing (preferably on a staging env)- Tools like [k6](https://k6.io/) can simulate traffic from many different users.- Upgrade your database if you require more resources. If you need anything beyond what is listed, contact [email protected].-- If you are expecting a surge in traffic (for a big launch) [contact support](https://supabase.com/dashboard/support/new) with more details about your launch. We'll keep an eye on your project.+- If you are expecting a surge in traffic (for a big launch) and are on a teams or enterprise plan, [contact support](https://supabase.com/dashboard/support/new) with more details about your launch and we'll help keep an eye on your project.- If you expect your database size to be > 4 GB, [enable](https://supabase.com/dashboard/project/_/settings/billing/subscription?panel=pitr) the Point in Time Recovery (PITR) addon. Daily backups can take up resources from your database when the backup is in progress. PITR is more resource efficient, since only the changes to the database are backed up.## Availabilitydiff --git a/apps/docs/pages/guides/platform/logs.mdx b/apps/docs/pages/guides/platform/logs.mdxindex 965eb8d75cd..ce5afec2d54 100644--- a/apps/docs/pages/guides/platform/logs.mdx+++ b/apps/docs/pages/guides/platform/logs.mdx@@ -20,6 +20,7 @@ Supabase provides a logging interface specific to each product. You can use simpsize="small"type="underlined"defaultActiveId="api"+ queryGroup="product"><TabPanel id="api" label="API">@@ -301,7 +302,7 @@ where h.x_real_ip is not null and r.method = "GET";Refer to the full field reference for each available source below. Do note that in order to access each nested key, you would need to perform the [necessary unnesting joins](#unnesting-arrays)-<Tabs scrollable size="small" type="underlined" defaultActiveId="edge_logs">+<Tabs scrollable size="small" type="underlined" defaultActiveId="edge_logs" queryGroup="source">{logConstants.schemas.map((schema) => (<TabPanel id={schema.reference} label={schema.name}><table>diff --git a/apps/docs/pages/guides/realtime.mdx b/apps/docs/pages/guides/realtime.mdxindex 9014147b0d4..a043d596c5c 100644--- a/apps/docs/pages/guides/realtime.mdx+++ b/apps/docs/pages/guides/realtime.mdx@@ -14,6 +14,63 @@ Supabase provides a globally distributed cluster of [Realtime](https://github.co- [Presence](/docs/guides/realtime/presence): Track and synchronize shared state between clients.- [Postgres Changes](/docs/guides/realtime/postgres-changes): Listen to Postgres database changes and send them to authorized clients.+### Realtime API++By default Realtime is disabled on your database. Let's turn on Realtime for a `todos` table.++ <Tabs+ scrollable+ size="small"+ type="underlined"+ defaultActiveId="dashboard"+ >+ <TabPanel id="dashboard" label="Dashboard">++1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard.+2. Click on **Replication** in the sidebar.+3. Control which database events are sent by toggling **Insert**, **Update**, and **Delete**.+4. Control which tables broadcast changes by selecting **Source** and toggling each table.++{' '}++<video width="99%" muted playsInline controls={true}>+ <source+ src="https://xguihxuzqibwxjnimxev.supabase.co/storage/v1/object/public/videos/docs/api/api-realtime.mp4"+ type="video/mp4"+ />+</video>++ </TabPanel>+ <TabPanel id="sql" label="SQL">++```sql+alter+ publication supabase_realtime add table todos;+```++ </TabPanel>+ </Tabs>++From the client, we can listen to any new data that is inserted into the `todos` table:++```javascript+// Initialize the JS client+import { createClient } from '@supabase/supabase-js'+const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY)++// Create a function to handle inserts+const handleInserts = (payload) => {+ console.log('Change received!', payload)+}++// Listen to inserts+const { data: todos, error } = await supabase.from('todos').on('INSERT', handleInserts).subscribe()+```++Use [subscribe()](/docs/reference/javascript/subscribe) to listen to database changes.+The Realtime API works through PostgreSQL's replication functionality. Postgres sends database changes to a [publication](/docs/guides/database/replication#publications)+called `supabase_realtime`, and by managing this publication you can control which data is broadcast.+## Examples<div className="grid md:grid-cols-12 gap-4 not-prose">diff --git a/apps/docs/pages/guides/realtime/concepts.mdx b/apps/docs/pages/guides/realtime/concepts.mdxindex eae39be7c4d..0e443ba5356 100644--- a/apps/docs/pages/guides/realtime/concepts.mdx+++ b/apps/docs/pages/guides/realtime/concepts.mdx@@ -46,7 +46,7 @@ An example use-case is sharing a user's cursor position with other clients in an## Presence-Presence can be used to share and invidual's state with others within a Channel.+Presence can be used to share an individual's state with others within a Channel.```jsconst presenceTrackStatus = await roomOne.track({diff --git a/apps/docs/pages/guides/realtime/postgres-changes.mdx b/apps/docs/pages/guides/realtime/postgres-changes.mdxindex 5a47bde0074..6d4665e4de8 100644--- a/apps/docs/pages/guides/realtime/postgres-changes.mdx+++ b/apps/docs/pages/guides/realtime/postgres-changes.mdx@@ -32,6 +32,7 @@ In this example we'll set up a database table, secure it with Row Level Securitysize="small"type="underlined"defaultActiveId="sql"+ queryGroup="database-method"><TabPanel id="sql" label="SQL">@@ -197,7 +198,7 @@ In this example we'll set up a database table, secure it with Row Level SecurityYou can use the Supabase client libraries to subscribe to database changes.-### Listeniing to specific schemas+### Listening to specific schemasSubscribe to specific schema events using the `schema` parameter:@@ -505,7 +506,7 @@ const channel = supabaseThis filter uses Postgres's `= ANY`. Realtime allows a maximum of 100 values for this filter.-## Receiveing `old` records+## Receiving `old` recordsBy default, only `new` record changes are sent but if you want to receive the `old` record (previous values) whenever you `UPDATE` or `DELETE` a record, you can set the `replica identity` of your table to `full`:diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdxindex 3a2f4315d65..f4ca9c95bfd 100644--- a/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx@@ -42,6 +42,7 @@ Alternatively, you can use [pgloader](https://github.com/dimitri/pgloader), a flsize="small"type="underlined"defaultActiveId="colab"+ queryGroup="migrate-method"><TabPanel id="colab" label="Migrate using Colab">diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdxindex 2eb6dd79214..6d0a4ba23e8 100644--- a/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx@@ -43,6 +43,7 @@ The fastest way to migrate your database is with the Supabase migration tool onsize="small"type="underlined"defaultActiveId="colab"+ queryGroup="migrate-method"><TabPanel id="colab" label="Migrate using Colab">diff --git a/apps/docs/pages/guides/storage/cdn.mdx b/apps/docs/pages/guides/storage/cdn.mdxindex bd4527adee5..d349398410f 100644--- a/apps/docs/pages/guides/storage/cdn.mdx+++ b/apps/docs/pages/guides/storage/cdn.mdx@@ -66,6 +66,58 @@ If your asset is updated frequently, we recommend that you re-upload the new assObjects in public buckets do not require any Authorization to access objects. This leads to a better cache hit rate compared to private buckets. For private buckets, permissions for accessing each object is checked on a per user level. For example, if two different users access the same object in a private bucket from the same region, it results in a cache miss for both the users since they might have different security policies attached to them. On the other hand, if two different users access the same object in a public bucket from the same region, it results in a cache hit for the second user.+## Debugging Cache Hits++The [storage report](https://supabase.com/dashboard/project/_/reports/storage) gives a breakdown of your project's cache hit rate.++The [Logs Explorer](https://supabase.com/dashboard/project/_/logs/explorer) can also be used to debug cache misses.++<Admonition type="note">The reporting date range depends on your plan's log retention.</Admonition>++Cache hits can be determined via the `metadata.response.headers.cf_cache_status` key. Any value corresponding to either `HIT`, `STALE`, `REVALIDATED`, or `UPDATING` is considered a cache hit.+The following example query will show the top cache misses from the `edge_logs`:++```sql+select+ r.path as path,+ r.search as search,+ count(id) as count+from+ edge_logs as f+ cross join unnest(f.metadata) as m+ cross join unnest(m.request) as r+ cross join unnest(m.response) as res+ cross join unnest(res.headers) as h+where+ starts_with(r.path, '/storage/v1/object')+ and r.method = 'GET'+ and h.cf_cache_status in ('MISS', 'NONE/UNKNOWN', 'EXPIRED', 'BYPASS', 'DYNAMIC')+group by path, search+order by count desc+limit 50;+```++Try out this query in the Logs Explorer [here]("https://supabase.com/dashboard/project/_/logs/explorer?q=%0Aselect%0A++r.path+as+path%2C%0A++r.search+as+search%2C%0A++count%28id%29+as+count%0Afrom%0A++edge_logs+as+f%0A++cross+join+unnest%28f.metadata%29+as+m%0A++cross+join+unnest%28m.request%29+as+r%0A++cross+join+unnest%28m.response%29+as+res%0A++cross+join+unnest%28res.headers%29+as+h%0Awhere%0A++starts_with%28r.path%2C+%27%2Fstorage%2Fv1%2Fobject%27%29%0A++and+r.method+%3D+%27GET%27%0A++and+h.cf_cache_status+in+%28%27MISS%27%2C+%27NONE%2FUNKNOWN%27%2C+%27EXPIRED%27%2C+%27BYPASS%27%2C+%27DYNAMIC%27%29%0Agroup+by+path%2C+search%0Aorder+by+count+desc%0Alimit+50%3B").++Your cache hit ratio over time can then be determined using the following query:++```sql+select+ timestamp_trunc(timestamp, hour) as timestamp,+ countif(h.cf_cache_status in ('HIT', 'STALE', 'REVALIDATED', 'UPDATING')) / count(f.id) as ratio+from+ edge_logs as f+ cross join unnest(f.metadata) as m+ cross join unnest(m.request) as r+ cross join unnest(m.response) as res+ cross join unnest(res.headers) as h+where starts_with(r.path, '/storage/v1/object') and r.method = 'GET'+group by timestamp+order by timestamp desc;+```++Try out this query in the Logs Explorer [here]("https://supabase.com/dashboard/project/_/logs/explorer?q=%0Aselect%0A++timestamp_trunc%28timestamp%2C+hour%29+as+timestamp%2C%0A++countif%28h.cf_cache_status+in+%28%27HIT%27%2C+%27STALE%27%2C+%27REVALIDATED%27%2C+%27UPDATING%27%29%29+%2F+count%28f.id%29+as+ratio%0Afrom%0A++edge_logs+as+f%0A++cross+join+unnest%28f.metadata%29+as+m%0A++cross+join+unnest%28m.request%29+as+r%0A++cross+join+unnest%28m.response%29+as+res%0A++cross+join+unnest%28res.headers%29+as+h%0Awhere+starts_with%28r.path%2C+%27%2Fstorage%2Fv1%2Fobject%27%29+and+r.method+%3D+%27GET%27%0Agroup+by+timestamp%0Aorder+by+timestamp+desc%3B").+export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Pagediff --git a/apps/docs/pages/guides/storage/quickstart.mdx b/apps/docs/pages/guides/storage/quickstart.mdxindex c90e36f385d..084fa5ba658 100644--- a/apps/docs/pages/guides/storage/quickstart.mdx+++ b/apps/docs/pages/guides/storage/quickstart.mdx@@ -43,6 +43,7 @@ client libraries. Here we create a bucket called "avatars":size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="language"><TabPanel id="dashboard" label="Dashboard">@@ -100,6 +101,7 @@ You can upload a file from the Dashboard, or within a browser using our JS librasize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="language"><TabPanel id="dashboard" label="Dashboard">@@ -151,6 +153,7 @@ You can download a file from the Dashboard, or within a browser using our JS libsize="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="language"><TabPanel id="dashboard" label="Dashboard">@@ -198,6 +201,7 @@ To restrict access to your files you can use either the Dashboard or SQL.size="small"type="underlined"defaultActiveId="dashboard"+ queryGroup="database-method"><TabPanel id="dashboard" label="Dashboard">diff --git a/apps/docs/pages/reference/analytics/[...slug].tsx b/apps/docs/pages/reference/analytics/[...slug].tsxindex 3fcf010110f..54d04153c0d 100644--- a/apps/docs/pages/reference/analytics/[...slug].tsx+++ b/apps/docs/pages/reference/analytics/[...slug].tsx@@ -139,6 +139,7 @@ export default function Config() {operation.responseList[0].responseCode ??operation.responseList[0].responseCode}+ queryGroup="response-status">{operation.responseList.map((response: any) => (<Tabs.Panel id={response.responseCode} label={response.responseCode}>diff --git a/apps/docs/pages/reference/auth/[...slug].tsx b/apps/docs/pages/reference/auth/[...slug].tsxindex 68603c86b07..00ac30b2994 100644--- a/apps/docs/pages/reference/auth/[...slug].tsx+++ b/apps/docs/pages/reference/auth/[...slug].tsx@@ -139,6 +139,7 @@ export default function Config() {operation.responseList[0].responseCode ??operation.responseList[0].responseCode}+ queryGroup="response-status">{operation.responseList.map((response: any) => (<Tabs.Panel id={response.responseCode} label={response.responseCode}>diff --git a/apps/docs/pages/reference/storage/[...slug].tsx b/apps/docs/pages/reference/storage/[...slug].tsxindex bfd42d2719a..35d0eaf3576 100644--- a/apps/docs/pages/reference/storage/[...slug].tsx+++ b/apps/docs/pages/reference/storage/[...slug].tsx@@ -133,6 +133,7 @@ export default function Config() {size="small"type="underlined"defaultActiveId={operation.responseList[0].responseCode}+ queryGroup="response-status">{operation.responseList.map((response: any) => (<Tabs.Panel id={response.responseCode} label={response.responseCode}>diff --git a/apps/docs/public/img/icons/menu/graphql.svg b/apps/docs/public/img/icons/menu/graphql.svgnew file mode 100644index 00000000000..bc4ea33340c--- /dev/null+++ b/apps/docs/public/img/icons/menu/graphql.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path+ d="M12,5.37L11.56,5.31L6,14.9C6.24,15.11 6.4,15.38 6.47,15.68H17.53C17.6,15.38 17.76,15.11 18,14.9L12.44,5.31L12,5.37M6.6,16.53L10.88,19.06C11.17,18.79 11.57,18.63 12,18.63C12.43,18.63 12.83,18.79 13.12,19.06L17.4,16.53H6.6M12,22A1.68,1.68 0 0,1 10.32,20.32L10.41,19.76L6.11,17.21C5.8,17.57 5.35,17.79 4.84,17.79A1.68,1.68 0 0,1 3.16,16.11C3.16,15.32 3.69,14.66 4.42,14.47V9.36C3.59,9.25 2.95,8.54 2.95,7.68A1.68,1.68 0 0,1 4.63,6C5.18,6 5.66,6.26 5.97,6.66L10.38,4.13L10.32,3.68C10.32,2.75 11.07,2 12,2C12.93,2 13.68,2.75 13.68,3.68L13.62,4.13L18.03,6.66C18.34,6.26 18.82,6 19.37,6A1.68,1.68 0 0,1 21.05,7.68C21.05,8.54 20.41,9.25 19.58,9.36V14.47C20.31,14.66 20.84,15.32 20.84,16.11A1.68,1.68 0 0,1 19.16,17.79C18.65,17.79 18.2,17.57 17.89,17.21L13.59,19.76L13.68,20.32A1.68,1.68 0 0,1 12,22M10.8,4.86L6.3,7.44L6.32,7.68C6.32,8.39 5.88,9 5.26,9.25L5.29,14.5L10.8,4.86M13.2,4.86L18.71,14.5L18.74,9.25C18.12,9 17.68,8.39 17.68,7.68L17.7,7.44L13.2,4.86Z"+ stroke="#4CC38A" strokeMiterlimit="10" strokeLinejoin="bevel" />+</svg>\ No newline at end of filediff --git a/apps/docs/public/img/icons/menu/rest.svg b/apps/docs/public/img/icons/menu/rest.svgnew file mode 100644index 00000000000..a901918409a--- /dev/null+++ b/apps/docs/public/img/icons/menu/rest.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path+ d="M1.923 9.927A5.833 5.833 0 0 1 1.14 7m2.877-5.046A5.833 5.833 0 0 1 7 1.14m5.13 3.025c.465.84.73 1.807.73 2.835m-2.883 5.049A5.832 5.832 0 0 1 7 12.859m6.172-10.027a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM4.81 11.148a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm8.362 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM4.81 2.832a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"+ stroke="#4CC38A" strokeMiterlimit="10" strokeLinejoin="bevel" />+</svg>\ No newline at end of filediff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex e25ed2cfa05..34bf9dbe55c 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -66,12 +66,6 @@<changefreq>0.5</changefreq></url>- <url>- <loc>https://supabase.com/docs/guides/integrations</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-<url><loc>https://supabase.com/docs/guides/platform</loc><changefreq>weekly</changefreq>@@ -109,1243 +103,1239 @@</url><url>- <loc>https://supabase.com/docs/guides/ai/choosing-instance-type</loc>+ <loc>https://supabase.com/docs/guides/api/api-keys</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/concepts</loc>+ <loc>https://supabase.com/docs/guides/api/creating-routes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/engineering-for-scale</loc>+ <loc>https://supabase.com/docs/guides/api/joins-and-nesting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/google-colab</loc>+ <loc>https://supabase.com/docs/guides/api/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/hugging-face</loc>+ <loc>https://supabase.com/docs/guides/api/securing-your-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/langchain</loc>+ <loc>https://supabase.com/docs/guides/api/using-custom-schemas</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/managing-collections</loc>+ <loc>https://supabase.com/docs/guides/ai/choosing-compute-addon</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/vector-indexes</loc>+ <loc>https://supabase.com/docs/guides/ai/concepts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/structured-unstructured</loc>+ <loc>https://supabase.com/docs/guides/ai/engineering-for-scale</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/vecs-python-client</loc>+ <loc>https://supabase.com/docs/guides/ai/going-to-prod</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/vector-columns</loc>+ <loc>https://supabase.com/docs/guides/ai/google-colab</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/api-keys</loc>+ <loc>https://supabase.com/docs/guides/ai/hugging-face</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/creating-routes</loc>+ <loc>https://supabase.com/docs/guides/ai/langchain</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/joins-and-nesting</loc>+ <loc>https://supabase.com/docs/guides/ai/python-clients</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/quickstart</loc>+ <loc>https://supabase.com/docs/guides/ai/structured-unstructured</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/securing-your-api</loc>+ <loc>https://supabase.com/docs/guides/ai/vecs-python-client</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc>+ <loc>https://supabase.com/docs/guides/ai/vector-columns</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-email-templates</loc>+ <loc>https://supabase.com/docs/guides/ai/vector-indexes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-email</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-email-templates</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-email</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-password-reset</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/enterprise-sso</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-password-reset</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-smtp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/row-level-security</loc>+ <loc>https://supabase.com/docs/guides/auth/enterprise-sso</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc>+ <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/managing-environments</loc>+ <loc>https://supabase.com/docs/guides/auth/row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/using-environment-variables-in-config</loc>+ <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/auth</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc>+ <loc>https://supabase.com/docs/guides/cli/customizing-email-templates</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/connect-to-postgres</loc>+ <loc>https://supabase.com/docs/guides/cli/getting-started</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/cors</loc>+ <loc>https://supabase.com/docs/guides/cli/local-development</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/dart-edge</loc>+ <loc>https://supabase.com/docs/guides/cli/managing-config</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/debugging</loc>+ <loc>https://supabase.com/docs/guides/cli/managing-environments</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/global-deployments</loc>+ <loc>https://supabase.com/docs/guides/cli/seeding-your-database</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/import-maps</loc>+ <loc>https://supabase.com/docs/guides/cli/testing-and-linting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/kysely-postgres</loc>+ <loc>https://supabase.com/docs/guides/database/arrays</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/local-development</loc>+ <loc>https://supabase.com/docs/guides/database/column-encryption</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/quickstart</loc>+ <loc>https://supabase.com/docs/guides/database/connecting-to-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/schedule-functions</loc>+ <loc>https://supabase.com/docs/guides/database/extensions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/secrets</loc>+ <loc>https://supabase.com/docs/guides/database/full-text-search</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/storage-caching</loc>+ <loc>https://supabase.com/docs/guides/database/functions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/troubleshooting</loc>+ <loc>https://supabase.com/docs/guides/database/inspect</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/typescript-support</loc>+ <loc>https://supabase.com/docs/guides/database/json</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/architecture</loc>+ <loc>https://supabase.com/docs/guides/database/managing-passwords</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/features</loc>+ <loc>https://supabase.com/docs/guides/database/managing-timezones</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/local-development</loc>+ <loc>https://supabase.com/docs/guides/database/overview</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/arrays</loc>+ <loc>https://supabase.com/docs/guides/database/partitions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/column-encryption</loc>+ <loc>https://supabase.com/docs/guides/database/query-optimization</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/connecting-to-postgres</loc>+ <loc>https://supabase.com/docs/guides/database/replication</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions</loc>+ <loc>https://supabase.com/docs/guides/database/sql-to-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/full-text-search</loc>+ <loc>https://supabase.com/docs/guides/database/tables</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/functions</loc>+ <loc>https://supabase.com/docs/guides/database/testing</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/json</loc>+ <loc>https://supabase.com/docs/guides/database/vault</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/managing-passwords</loc>+ <loc>https://supabase.com/docs/guides/database/webhooks</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/managing-timezones</loc>+ <loc>https://supabase.com/docs/guides/functions/auth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/overview</loc>+ <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/partitions</loc>+ <loc>https://supabase.com/docs/guides/functions/connect-to-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/replication</loc>+ <loc>https://supabase.com/docs/guides/functions/cors</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/sql-to-api</loc>+ <loc>https://supabase.com/docs/guides/functions/dart-edge</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/tables</loc>+ <loc>https://supabase.com/docs/guides/functions/debugging</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/testing</loc>+ <loc>https://supabase.com/docs/guides/functions/global-deployments</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/timeouts</loc>+ <loc>https://supabase.com/docs/guides/functions/import-maps</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/vault</loc>+ <loc>https://supabase.com/docs/guides/functions/kysely-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/webhooks</loc>+ <loc>https://supabase.com/docs/guides/functions/local-development</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/appsmith</loc>+ <loc>https://supabase.com/docs/guides/functions/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/auth0</loc>+ <loc>https://supabase.com/docs/guides/functions/schedule-functions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/authsignal</loc>+ <loc>https://supabase.com/docs/guides/functions/secrets</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/bracket</loc>+ <loc>https://supabase.com/docs/guides/functions/storage-caching</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/clerk</loc>+ <loc>https://supabase.com/docs/guides/functions/troubleshooting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/cloudflare-workers</loc>+ <loc>https://supabase.com/docs/guides/functions/typescript-support</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/dhiwise</loc>+ <loc>https://supabase.com/docs/guides/functions/unit-test</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/directus</loc>+ <loc>https://supabase.com/docs/guides/getting-started/architecture</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/draftbit</loc>+ <loc>https://supabase.com/docs/guides/getting-started/features</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/estuary</loc>+ <loc>https://supabase.com/docs/guides/platform/access-control</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/fezto</loc>+ <loc>https://supabase.com/docs/guides/platform/backups</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/flutterflow</loc>+ <loc>https://supabase.com/docs/guides/platform/compute-add-ons</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/forestadmin</loc>+ <loc>https://supabase.com/docs/guides/platform/custom-domains</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/illa</loc>+ <loc>https://supabase.com/docs/guides/platform/custom-postgres-config</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/integrations</loc>+ <loc>https://supabase.com/docs/guides/platform/database-size</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/keyri</loc>+ <loc>https://supabase.com/docs/guides/platform/enterprise-billing</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/onesignal</loc>+ <loc>https://supabase.com/docs/guides/platform/exhaust-cpu</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/passage</loc>+ <loc>https://supabase.com/docs/guides/platform/exhaust-disk-io</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/pgmustard</loc>+ <loc>https://supabase.com/docs/guides/platform/exhaust-ram</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/picket</loc>+ <loc>https://supabase.com/docs/guides/platform/going-into-prod</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/plasmic</loc>+ <loc>https://supabase.com/docs/guides/platform/http-status-codes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/polyscale</loc>+ <loc>https://supabase.com/docs/guides/platform/logs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/prisma</loc>+ <loc>https://supabase.com/docs/guides/platform/marketplace</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/sequin</loc>+ <loc>https://supabase.com/docs/guides/platform/maturity-model</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/snaplet</loc>+ <loc>https://supabase.com/docs/guides/platform/metrics</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/stytch</loc>+ <loc>https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/supertokens</loc>+ <loc>https://supabase.com/docs/guides/platform/network-restrictions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/vercel</loc>+ <loc>https://supabase.com/docs/guides/platform/org-based-billing</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/weweb</loc>+ <loc>https://supabase.com/docs/guides/platform/performance</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/integrations/zuplo</loc>+ <loc>https://supabase.com/docs/guides/platform/permissions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/access-control</loc>+ <loc>https://supabase.com/docs/guides/platform/project-transfer</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/backups</loc>+ <loc>https://supabase.com/docs/guides/platform/shared-responsibility-model</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/compute-add-ons</loc>+ <loc>https://supabase.com/docs/guides/platform/spend-cap</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/custom-domains</loc>+ <loc>https://supabase.com/docs/guides/platform/ssl-enforcement</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/custom-postgres-config</loc>+ <loc>https://supabase.com/docs/guides/platform/sso</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/database-size</loc>+ <loc>https://supabase.com/docs/guides/platform/troubleshooting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/exhaust-cpu</loc>+ <loc>https://supabase.com/docs/guides/realtime/architecture</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/exhaust-ram</loc>+ <loc>https://supabase.com/docs/guides/realtime/bring-your-own-database</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/going-into-prod</loc>+ <loc>https://supabase.com/docs/guides/realtime/broadcast</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/http-status-codes</loc>+ <loc>https://supabase.com/docs/guides/realtime/concepts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/logs</loc>+ <loc>https://supabase.com/docs/guides/realtime/postgres-changes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/maturity-model</loc>+ <loc>https://supabase.com/docs/guides/realtime/presence</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/metrics</loc>+ <loc>https://supabase.com/docs/guides/realtime/protocol</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects</loc>+ <loc>https://supabase.com/docs/guides/realtime/quotas</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/network-restrictions</loc>+ <loc>https://supabase.com/docs/guides/realtime/realtime-with-nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/performance</loc>+ <loc>https://supabase.com/docs/guides/realtime/subscribing-to-database-changes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/permissions</loc>+ <loc>https://supabase.com/docs/guides/resources/examples</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/shared-responsibility-model</loc>+ <loc>https://supabase.com/docs/guides/resources/glossary</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/spend-cap</loc>+ <loc>https://supabase.com/docs/guides/self-hosting/docker</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/ssl-enforcement</loc>+ <loc>https://supabase.com/docs/guides/storage/access-control</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso</loc>+ <loc>https://supabase.com/docs/guides/storage/cdn</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/troubleshooting</loc>+ <loc>https://supabase.com/docs/guides/storage/image-transformations</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/architecture</loc>+ <loc>https://supabase.com/docs/guides/storage/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/bring-your-own-database</loc>+ <loc>https://supabase.com/docs/guides/storage/storage-sample</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/broadcast</loc>+ <loc>https://supabase.com/docs/guides/storage/uploads</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/concepts</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/postgres-changes</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/presence</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/protocol</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/quickstart</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/quotas</loc>+ <loc>https://supabase.com/docs/guides/api/rest/auto-generated-docs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/realtime-with-nextjs</loc>+ <loc>https://supabase.com/docs/guides/api/rest/client-libs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/subscribing-to-database-changes</loc>+ <loc>https://supabase.com/docs/guides/api/rest/generating-types</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/examples</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/building-chatgpt-plugins</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/glossary</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/headless-vector-search</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/self-hosting/docker</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/huggingface-image-captioning</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/access-control</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/image-search-openai-clip</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/cdn</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/nextjs-vector-search</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/image-transformations</loc>+ <loc>https://supabase.com/docs/guides/ai/examples/openai</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/quickstart</loc>+ <loc>https://supabase.com/docs/guides/ai/integrations/llamaindex</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/storage-sample</loc>+ <loc>https://supabase.com/docs/guides/ai/quickstarts/face-similarity</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/storage/uploads</loc>+ <loc>https://supabase.com/docs/guides/ai/quickstarts/generate-text-embeddings</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>+ <loc>https://supabase.com/docs/guides/ai/quickstarts/hello-world</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>+ <loc>https://supabase.com/docs/guides/ai/quickstarts/text-deduplication</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/auth-ui</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/flutter-auth-ui</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/integrations/llamaindex</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/quickstarts/face-similarity</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/remix</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/quickstarts/hello-world</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/sveltekit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/quickstarts/text-deduplication</loc>+ <loc>https://supabase.com/docs/guides/auth/concepts/redirect-urls</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/building-chatgpt-plugins</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/messagebird</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/headless-vector-search</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/twilio</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/huggingface-image-captioning</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/vonage</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/image-search-openai-clip</loc>+ <loc>https://supabase.com/docs/guides/ai/vector-indexes/hnsw-indexes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/nextjs-vector-search</loc>+ <loc>https://supabase.com/docs/guides/ai/vector-indexes/ivf-indexes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/examples/openai</loc>+ <loc>https://supabase.com/docs/guides/auth/quickstarts/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/graphql/graphiql</loc>+ <loc>https://supabase.com/docs/guides/auth/quickstarts/react</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/rest/auto-generated-docs</loc>+ <loc+ >https://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr</loc+ ><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/rest/client-libs</loc>+ <loc>https://supabase.com/docs/guides/auth/server-side/oauth-with-pkce-flow-for-ssr</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/api/rest/generating-types</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/auth-ui</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/flutter-auth-ui</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/remix</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-figma</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/sveltekit</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/quickstarts/react</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-kakao</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/android</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc>+ <loc>https://supabase.com/docs/guides/auth/sso/auth-sso-saml</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/http</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/hypopg</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/index_advisor</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg-safeupdate</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_cron</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/sso/auth-sso-saml</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_graphql</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/messagebird</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_hashids</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/twilio</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_jsonschema</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/vonage</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_net</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/cloudflare-turnstile</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_plan_filter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/discord-bot</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_repack</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/github-actions</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_stat_monitor</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pg_stat_statements</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/rate-limiting</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgaudit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/screenshots</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgjwt</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/send-emails</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgroonga</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/stripe-webhooks</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgrouting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/telegram-bot</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgsodium</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/upstash-redis</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/flutter</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgvector</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/plpgsql_check</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/reactjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/postgis</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/rum</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/solidjs</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/timescaledb</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/vue</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/cascade-deletes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/postgres/cascade-deletes</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/configuration</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1369,313 +1359,313 @@</url><url>- <loc>https://supabase.com/docs/guides/database/postgres/which-version-of-postgres</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/roles</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/http</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/hypopg</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/triggers</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg-safeupdate</loc>+ <loc>https://supabase.com/docs/guides/database/postgres/which-version-of-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_graphql</loc>+ <loc>https://supabase.com/docs/guides/platform/oauth-apps/build-a-supabase-integration</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_hashids</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/cloudflare-turnstile</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_jsonschema</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/discord-bot</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_plan_filter</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/github-actions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_stat_monitor</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pg_stat_statements</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/rate-limiting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgaudit</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/screenshots</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/send-emails</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgjwt</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/stripe-webhooks</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/telegram-bot</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgrepack</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/upstash-redis</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgroonga</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-angular</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgrouting</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-expo</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgsodium</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-flutter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgvector</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-react</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/plpgsql_check</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-vue</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-kotlin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/postgis</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/rum</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nuxt-3</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/timescaledb</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-react</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-redwoodjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/wrappers/overview</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-refine</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/azure</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-solidjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/gsuite</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-svelte</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/okta</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/amazon-rds</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-vue-3</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-auth</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/flutter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-storage</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/kotlin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firestore-data</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/heroku</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/render</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/reactjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-angular</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-expo</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/refine</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-flutter</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/solidjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-kotlin</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/vue</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-react</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/azure</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-vue</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/gsuite</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nextjs</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/okta</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nuxt-3</loc>+ <loc>https://supabase.com/docs/guides/realtime/guides/client-side-throttling</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-react</loc>+ <loc>https://supabase.com/docs/guides/self-hosting/analytics/config</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-redwoodjs</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/amazon-rds</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-solidjs</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-auth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-svelte</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firebase-storage</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/firestore-data</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-vue-3</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/heroku</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/self-hosting/analytics/config</loc>+ <loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/render</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1686,6 +1676,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/guides/self-hosting/storage/config</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/self-hosting/auth/config</loc><changefreq>weekly</changefreq>@@ -1693,7 +1689,7 @@</url><url>- <loc>https://supabase.com/docs/guides/self-hosting/storage/config</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/wrappers/overview</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1734,6 +1730,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/javascript/auth-signinwithidtoken</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/javascript/auth-signinwithsso</loc><changefreq>weekly</changefreq>@@ -2205,169 +2207,271 @@</url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-emptybucket</loc>+ <loc>https://supabase.com/docs/reference/javascript/storage-emptybucket</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-updatebucket</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-deletebucket</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-upload</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-update</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-move</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-copy</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-createsignedurl</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-createsignedurls</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-createsigneduploadurl</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-uploadtosignedurl</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-getpublicurl</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-download</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-remove</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/javascript/storage-from-list</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/dart/initializing</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/dart/auth-signup</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/dart/auth-signinwithpassword</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-updatebucket</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-signinwithotp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-deletebucket</loc>+ <loc>https://supabase.com/docs/reference/dart/sign-in-with-apple</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-upload</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-signinwithoauth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-update</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-signout</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-move</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-verifyotp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-copy</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-getsession</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-createsignedurl</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-getuser</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-createsignedurls</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-updateuser</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-createsigneduploadurl</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-reauthentication</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-uploadtosignedurl</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-resend</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-getpublicurl</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-onauthstatechange</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-download</loc>+ <loc>https://supabase.com/docs/reference/dart/undefined</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-remove</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/javascript/storage-from-list</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-enroll</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/initializing</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-challenge</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-signup</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-verify</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-signinwithpassword</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-challengeandverify</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-signinwithotp</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-unenroll</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/sign-in-with-apple</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-mfa-getauthenticatorassurancelevel</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-signinwithoauth</loc>+ <loc>https://supabase.com/docs/reference/dart/admin-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-signout</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-getuserbyid</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-verifyotp</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-listusers</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-getsession</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-createuser</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-getuser</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-deleteuser</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-updateuser</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-inviteuserbyemail</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/auth-onauthstatechange</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-generatelink</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/dart/undefined</loc>+ <loc>https://supabase.com/docs/reference/dart/auth-admin-updateuserbyid</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -4022,6 +4126,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/kotlin/getchannels</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/kotlin/storage-listbuckets</loc><changefreq>weekly</changefreq>@@ -4131,109 +4241,109 @@</url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-info</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-get</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-add</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-delete</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-remove</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-check-availability</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-update</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-activate</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-list</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-test</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-sso-show</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-test-new</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-test-db</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-get</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-stop</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-delete</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-status</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-check-availability</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-start</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-vanity-subdomains-activate</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-test</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-update</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-test-new</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-show</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-test-db</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-remove</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-stop</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-list</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-status</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-info</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-start</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-sso-add</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -4298,6 +4408,30 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-projects-api-keys</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-ssl-enforcement</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-postgres-config-update</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-postgres-config-get</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/cli/supabase-orgs</loc><changefreq>weekly</changefreq>@@ -4310,6 +4444,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-orgs-create</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/cli/supabase-network-restrictions</loc><changefreq>weekly</changefreq>@@ -4358,6 +4498,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-migration-squash</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/cli/supabase-migration-repair</loc><changefreq>weekly</changefreq>@@ -4388,6 +4534,126 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-vacuum-stats</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-unused-indexes</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-total-table-sizes</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-total-index-size</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-table-sizes</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-table-record-counts</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-table-index-sizes</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-seq-scans</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-role-connections</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-replication-slots</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-outliers</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-long-running-queries</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-locks</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-index-usage</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-index-sizes</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-calls</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-cache-hit</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-blocking</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-inspect-db-bloat</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/cli/supabase-init</loc><changefreq>weekly</changefreq>@@ -4436,6 +4702,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-functions-list</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/cli/supabase-functions-download</loc><changefreq>weekly</changefreq>@@ -4497,25 +4769,25 @@</url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-db-reset</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-db-start</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-db-remote</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-db-reset</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-db-remote-commit</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-db-push</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/cli/supabase-db-push</loc>+ <loc>https://supabase.com/docs/reference/cli/supabase-db-pull</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -4568,6 +4840,48 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-update</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-list</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-get</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-disable</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-delete</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/reference/cli/supabase-branches-create</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/reference/api/introduction</loc><changefreq>weekly</changefreq>diff --git a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdxindex efde7459329..b01571d4f17 100644--- a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx+++ b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx@@ -196,7 +196,7 @@ def create_user():"""Add new user to the database (using secure random numbers)"""- user_id = randrange(1, MAX_RANDOM_USER_ID)+ user_id = randbelow(1, MAX_RANDOM_USER_ID)user = User(id=user_id, email="[email protected]", name="new user")db.save(user)diff --git a/apps/www/lib/supabase.ts b/apps/www/lib/supabase.tsindex 9eb2cf3fb03..061606dbcfd 100644--- a/apps/www/lib/supabase.ts+++ b/apps/www/lib/supabase.ts@@ -2,8 +2,8 @@ import { createClient } from '@supabase/supabase-js'import { Database } from './database.types'const supabase = createClient<Database>(- process.env.NEXT_PUBLIC_SUPABASE_URL!,- process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!+ process.env.NEXT_PUBLIC_MISC_USE_URL!,+ process.env.NEXT_PUBLIC_MISC_USE_ANON_KEY!)export type SupabaseClient = typeof supabasediff --git a/apps/www/public/badge-made-with-supabase-dark.svg b/apps/www/public/badge-made-with-supabase-dark.svgnew file mode 100644index 00000000000..f2dffdd9847--- /dev/null+++ b/apps/www/public/badge-made-with-supabase-dark.svg@@ -0,0 +1,23 @@+<svg width="170" height="31" viewBox="0 0 170 31" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0.5" y="1" width="169" height="29" rx="4.5" fill="#1C1C1C"/>+<g clip-path="url(#clip0_264_4865)">+<path d="M19.1826 22.5143C18.8153 22.9839 18.0706 22.7266 18.0618 22.1269L17.9324 13.3564H23.7404C24.7924 13.3564 25.3791 14.5901 24.725 15.4267L19.1826 22.5143Z" fill="url(#paint0_linear_264_4865)"/>+<path d="M19.1826 22.5143C18.8153 22.9839 18.0706 22.7266 18.0618 22.1269L17.9324 13.3564H23.7404C24.7924 13.3564 25.3791 14.5901 24.725 15.4267L19.1826 22.5143Z" fill="url(#paint1_linear_264_4865)" fill-opacity="0.2"/>+<path d="M16.8205 8.40167C17.1878 7.932 17.9325 8.18934 17.9414 8.789L17.9981 17.5595H12.2627C11.2107 17.5595 10.624 16.3258 11.2781 15.4892L16.8205 8.40167Z" fill="#3ECF8E"/>+</g>+<path d="M44.4429 20.5H43.1819V13.324L40.0359 20.5H38.8659L35.7459 13.324V20.5H34.4849V11.283H36.2139L39.4639 18.784L42.7399 11.283H44.4429V20.5ZM46.2032 18.823C46.2032 17.705 47.0222 17.081 48.1012 16.925L49.7912 16.678C50.1682 16.626 50.2722 16.431 50.2722 16.21C50.2722 15.599 49.8692 15.092 48.9202 15.092C48.0622 15.092 47.5812 15.625 47.5032 16.353L46.3332 16.08C46.4632 14.884 47.5422 14.052 48.8942 14.052C50.7662 14.052 51.4942 15.118 51.4942 16.34V19.473C51.4942 20.019 51.5462 20.344 51.5722 20.5H50.3762C50.3502 20.344 50.3112 20.11 50.3112 19.655C50.0382 20.097 49.4142 20.695 48.2962 20.695C47.0222 20.695 46.2032 19.811 46.2032 18.823ZM48.4652 19.668C49.4662 19.668 50.2722 19.187 50.2722 17.822V17.536L48.3612 17.822C47.8412 17.9 47.4512 18.199 47.4512 18.758C47.4512 19.226 47.8412 19.668 48.4652 19.668ZM54.1259 17.354C54.1259 18.641 54.7889 19.59 55.9589 19.59C57.0769 19.59 57.7659 18.615 57.7659 17.328C57.7659 16.041 57.0899 15.157 55.9719 15.157C54.8539 15.157 54.1259 16.067 54.1259 17.354ZM57.7789 19.655V19.551C57.4799 20.149 56.8169 20.669 55.8419 20.669C54.0089 20.669 52.8779 19.213 52.8779 17.354C52.8779 15.586 54.0739 14.078 55.8419 14.078C56.9469 14.078 57.5449 14.624 57.7529 15.131V11.088H58.9619V19.343C58.9619 19.941 59.0139 20.396 59.0269 20.5H57.8439C57.8179 20.357 57.7789 20.032 57.7789 19.655ZM61.8335 16.73H65.2525C65.2265 15.833 64.6415 15.131 63.5365 15.131C62.5095 15.131 61.8855 15.924 61.8335 16.73ZM65.4345 18.355L66.4875 18.719C66.1365 19.824 65.1355 20.695 63.6795 20.695C62.0025 20.695 60.5335 19.473 60.5335 17.354C60.5335 15.391 61.9505 14.052 63.5235 14.052C65.4475 14.052 66.5265 15.378 66.5265 17.328C66.5265 17.484 66.5135 17.64 66.5005 17.718H61.7945C61.8205 18.836 62.6265 19.616 63.6795 19.616C64.6935 19.616 65.2005 19.057 65.4345 18.355ZM74.8594 14.247H76.1204L77.7454 18.953L79.1234 14.247H80.4104L78.3824 20.5H77.1214L75.4574 15.742L73.8324 20.5H72.5454L70.4914 14.247H71.8304L73.2344 18.953L74.8594 14.247ZM82.854 20.5H81.645V14.247H82.854V20.5ZM81.372 11.881C81.372 11.387 81.762 10.997 82.243 10.997C82.737 10.997 83.127 11.387 83.127 11.881C83.127 12.362 82.737 12.752 82.243 12.752C81.762 12.752 81.372 12.362 81.372 11.881ZM86.5711 12.271V14.247H87.9231V15.352H86.5711V18.602C86.5711 19.174 86.8051 19.46 87.4421 19.46C87.5981 19.46 87.8191 19.434 87.9231 19.408V20.448C87.8191 20.487 87.5071 20.565 87.0911 20.565C86.0251 20.565 85.3491 19.915 85.3491 18.784V15.352H84.1531V14.247H84.4911C85.1671 14.247 85.4531 13.831 85.4531 13.285V12.271H86.5711ZM90.7762 16.821V20.5H89.5542V11.088H90.7762V14.975C91.2312 14.312 91.9592 14.065 92.6742 14.065C94.1692 14.065 94.9102 15.144 94.9102 16.535V20.5H93.6882V16.743C93.6882 15.872 93.3242 15.17 92.2322 15.17C91.2962 15.17 90.8022 15.898 90.7762 16.821ZM106.11 13.376L104.966 13.779C104.862 13.116 104.303 12.206 103.016 12.206C101.976 12.206 101.235 12.882 101.235 13.74C101.235 14.403 101.638 14.91 102.418 15.079L103.796 15.378C105.33 15.716 106.188 16.678 106.188 17.965C106.188 19.395 104.966 20.695 103.003 20.695C100.78 20.695 99.727 19.265 99.558 17.952L100.78 17.562C100.871 18.589 101.599 19.538 102.99 19.538C104.264 19.538 104.888 18.875 104.888 18.069C104.888 17.406 104.433 16.834 103.51 16.639L102.197 16.353C100.884 16.067 99.948 15.209 99.948 13.831C99.948 12.388 101.287 11.088 102.99 11.088C105.07 11.088 105.902 12.375 106.11 13.376ZM111.601 19.746C111.263 20.396 110.483 20.695 109.755 20.695C108.299 20.695 107.415 19.603 107.415 18.186V14.247H108.637V18.004C108.637 18.862 109.027 19.616 110.054 19.616C111.042 19.616 111.536 18.966 111.536 18.017V14.247H112.758V19.343C112.758 19.837 112.797 20.279 112.823 20.5H111.653C111.627 20.357 111.601 20.006 111.601 19.746ZM116.052 22.97H114.843V14.247H116.026V15.222C116.364 14.598 117.105 14.104 118.119 14.104C119.991 14.104 120.992 15.547 120.992 17.367C120.992 19.226 119.913 20.669 118.08 20.669C117.118 20.669 116.39 20.214 116.052 19.655V22.97ZM119.744 17.367C119.744 16.119 119.042 15.183 117.898 15.183C116.78 15.183 116.039 16.119 116.039 17.367C116.039 18.654 116.78 19.577 117.898 19.577C119.029 19.577 119.744 18.654 119.744 17.367ZM122.159 18.823C122.159 17.705 122.978 17.081 124.057 16.925L125.747 16.678C126.124 16.626 126.228 16.431 126.228 16.21C126.228 15.599 125.825 15.092 124.876 15.092C124.018 15.092 123.537 15.625 123.459 16.353L122.289 16.08C122.419 14.884 123.498 14.052 124.85 14.052C126.722 14.052 127.45 15.118 127.45 16.34V19.473C127.45 20.019 127.502 20.344 127.528 20.5H126.332C126.306 20.344 126.267 20.11 126.267 19.655C125.994 20.097 125.37 20.695 124.252 20.695C122.978 20.695 122.159 19.811 122.159 18.823ZM124.421 19.668C125.422 19.668 126.228 19.187 126.228 17.822V17.536L124.317 17.822C123.797 17.9 123.407 18.199 123.407 18.758C123.407 19.226 123.797 19.668 124.421 19.668ZM130.563 20.5H129.354V11.088H130.563V15.131C130.862 14.572 131.59 14.065 132.63 14.065C134.528 14.065 135.503 15.521 135.503 17.341C135.503 19.2 134.45 20.669 132.591 20.669C131.668 20.669 130.953 20.266 130.563 19.59V20.5ZM134.255 17.341C134.255 15.989 133.54 15.144 132.409 15.144C131.33 15.144 130.55 15.989 130.55 17.341C130.55 18.693 131.33 19.577 132.409 19.577C133.527 19.577 134.255 18.693 134.255 17.341ZM136.67 18.823C136.67 17.705 137.489 17.081 138.568 16.925L140.258 16.678C140.635 16.626 140.739 16.431 140.739 16.21C140.739 15.599 140.336 15.092 139.387 15.092C138.529 15.092 138.048 15.625 137.97 16.353L136.8 16.08C136.93 14.884 138.009 14.052 139.361 14.052C141.233 14.052 141.961 15.118 141.961 16.34V19.473C141.961 20.019 142.013 20.344 142.039 20.5H140.843C140.817 20.344 140.778 20.11 140.778 19.655C140.505 20.097 139.881 20.695 138.763 20.695C137.489 20.695 136.67 19.811 136.67 18.823ZM138.932 19.668C139.933 19.668 140.739 19.187 140.739 17.822V17.536L138.828 17.822C138.308 17.9 137.918 18.199 137.918 18.758C137.918 19.226 138.308 19.668 138.932 19.668ZM143.28 18.875L144.385 18.485C144.463 19.135 144.957 19.655 145.841 19.655C146.53 19.655 146.907 19.265 146.907 18.823C146.907 18.433 146.621 18.134 146.101 18.017L145.035 17.783C144.06 17.575 143.475 16.912 143.475 16.028C143.475 14.962 144.476 14.052 145.698 14.052C147.414 14.052 147.947 15.17 148.077 15.729L146.998 16.132C146.946 15.807 146.686 15.092 145.698 15.092C145.074 15.092 144.658 15.495 144.658 15.924C144.658 16.301 144.892 16.574 145.373 16.678L146.387 16.899C147.518 17.146 148.116 17.835 148.116 18.758C148.116 19.642 147.375 20.695 145.828 20.695C144.112 20.695 143.384 19.59 143.28 18.875ZM150.472 16.73H153.891C153.865 15.833 153.28 15.131 152.175 15.131C151.148 15.131 150.524 15.924 150.472 16.73ZM154.073 18.355L155.126 18.719C154.775 19.824 153.774 20.695 152.318 20.695C150.641 20.695 149.172 19.473 149.172 17.354C149.172 15.391 150.589 14.052 152.162 14.052C154.086 14.052 155.165 15.378 155.165 17.328C155.165 17.484 155.152 17.64 155.139 17.718H150.433C150.459 18.836 151.265 19.616 152.318 19.616C153.332 19.616 153.839 19.057 154.073 18.355Z" fill="#EDEDED"/>+<rect x="0.5" y="1" width="169" height="29" rx="4.5" stroke="#2E2E2E"/>+<defs>+<linearGradient id="paint0_linear_264_4865" x1="17.9324" y1="15.301" x2="23.1177" y2="17.4428" gradientUnits="userSpaceOnUse">+<stop stop-color="#249361"/>+<stop offset="1" stop-color="#3ECF8E"/>+</linearGradient>+<linearGradient id="paint1_linear_264_4865" x1="15.6438" y1="12.1194" x2="18.0544" y2="16.5886" gradientUnits="userSpaceOnUse">+<stop/>+<stop offset="1" stop-opacity="0"/>+</linearGradient>+<clipPath id="clip0_264_4865">+<rect width="14" height="14.7368" fill="white" transform="translate(11 8.13159)"/>+</clipPath>+</defs>+</svg>diff --git a/apps/www/public/badge-made-with-supabase.svg b/apps/www/public/badge-made-with-supabase.svgnew file mode 100644index 00000000000..de987520a2c--- /dev/null+++ b/apps/www/public/badge-made-with-supabase.svg@@ -0,0 +1,23 @@+<svg width="170" height="31" viewBox="0 0 170 31" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0.5" y="0.82959" width="169" height="29" rx="4.5" fill="#F1F3F5"/>+<g clip-path="url(#clip0_264_4875)">+<path d="M19.1826 22.3439C18.8153 22.8135 18.0706 22.5562 18.0618 21.9565L17.9324 13.186H23.7404C24.7924 13.186 25.3791 14.4197 24.725 15.2563L19.1826 22.3439Z" fill="url(#paint0_linear_264_4875)"/>+<path d="M19.1826 22.3439C18.8153 22.8135 18.0706 22.5562 18.0618 21.9565L17.9324 13.186H23.7404C24.7924 13.186 25.3791 14.4197 24.725 15.2563L19.1826 22.3439Z" fill="url(#paint1_linear_264_4875)" fill-opacity="0.2"/>+<path d="M16.8205 8.23126C17.1878 7.76158 17.9325 8.01893 17.9414 8.61859L17.9981 17.3891H12.2627C11.2107 17.3891 10.624 16.1554 11.2781 15.3188L16.8205 8.23126Z" fill="#3ECF8E"/>+</g>+<path d="M44.4429 20.3296H43.1819V13.1536L40.0359 20.3296H38.8659L35.7459 13.1536V20.3296H34.4849V11.1126H36.2139L39.4639 18.6136L42.7399 11.1126H44.4429V20.3296ZM46.2032 18.6526C46.2032 17.5346 47.0222 16.9106 48.1012 16.7546L49.7912 16.5076C50.1682 16.4556 50.2722 16.2606 50.2722 16.0396C50.2722 15.4286 49.8692 14.9216 48.9202 14.9216C48.0622 14.9216 47.5812 15.4546 47.5032 16.1826L46.3332 15.9096C46.4632 14.7136 47.5422 13.8816 48.8942 13.8816C50.7662 13.8816 51.4942 14.9476 51.4942 16.1696V19.3026C51.4942 19.8486 51.5462 20.1736 51.5722 20.3296H50.3762C50.3502 20.1736 50.3112 19.9396 50.3112 19.4846C50.0382 19.9266 49.4142 20.5246 48.2962 20.5246C47.0222 20.5246 46.2032 19.6406 46.2032 18.6526ZM48.4652 19.4976C49.4662 19.4976 50.2722 19.0166 50.2722 17.6516V17.3656L48.3612 17.6516C47.8412 17.7296 47.4512 18.0286 47.4512 18.5876C47.4512 19.0556 47.8412 19.4976 48.4652 19.4976ZM54.1259 17.1836C54.1259 18.4706 54.7889 19.4196 55.9589 19.4196C57.0769 19.4196 57.7659 18.4446 57.7659 17.1576C57.7659 15.8706 57.0899 14.9866 55.9719 14.9866C54.8539 14.9866 54.1259 15.8966 54.1259 17.1836ZM57.7789 19.4846V19.3806C57.4799 19.9786 56.8169 20.4986 55.8419 20.4986C54.0089 20.4986 52.8779 19.0426 52.8779 17.1836C52.8779 15.4156 54.0739 13.9076 55.8419 13.9076C56.9469 13.9076 57.5449 14.4536 57.7529 14.9606V10.9176H58.9619V19.1726C58.9619 19.7706 59.0139 20.2256 59.0269 20.3296H57.8439C57.8179 20.1866 57.7789 19.8616 57.7789 19.4846ZM61.8335 16.5596H65.2525C65.2265 15.6626 64.6415 14.9606 63.5365 14.9606C62.5095 14.9606 61.8855 15.7536 61.8335 16.5596ZM65.4345 18.1846L66.4875 18.5486C66.1365 19.6536 65.1355 20.5246 63.6795 20.5246C62.0025 20.5246 60.5335 19.3026 60.5335 17.1836C60.5335 15.2206 61.9505 13.8816 63.5235 13.8816C65.4475 13.8816 66.5265 15.2076 66.5265 17.1576C66.5265 17.3136 66.5135 17.4696 66.5005 17.5476H61.7945C61.8205 18.6656 62.6265 19.4456 63.6795 19.4456C64.6935 19.4456 65.2005 18.8866 65.4345 18.1846ZM74.8594 14.0766H76.1204L77.7454 18.7826L79.1234 14.0766H80.4104L78.3824 20.3296H77.1214L75.4574 15.5716L73.8324 20.3296H72.5454L70.4914 14.0766H71.8304L73.2344 18.7826L74.8594 14.0766ZM82.854 20.3296H81.645V14.0766H82.854V20.3296ZM81.372 11.7106C81.372 11.2166 81.762 10.8266 82.243 10.8266C82.737 10.8266 83.127 11.2166 83.127 11.7106C83.127 12.1916 82.737 12.5816 82.243 12.5816C81.762 12.5816 81.372 12.1916 81.372 11.7106ZM86.5711 12.1006V14.0766H87.9231V15.1816H86.5711V18.4316C86.5711 19.0036 86.8051 19.2896 87.4421 19.2896C87.5981 19.2896 87.8191 19.2636 87.9231 19.2376V20.2776C87.8191 20.3166 87.5071 20.3946 87.0911 20.3946C86.0251 20.3946 85.3491 19.7446 85.3491 18.6136V15.1816H84.1531V14.0766H84.4911C85.1671 14.0766 85.4531 13.6606 85.4531 13.1146V12.1006H86.5711ZM90.7762 16.6506V20.3296H89.5542V10.9176H90.7762V14.8046C91.2312 14.1416 91.9592 13.8946 92.6742 13.8946C94.1692 13.8946 94.9102 14.9736 94.9102 16.3646V20.3296H93.6882V16.5726C93.6882 15.7016 93.3242 14.9996 92.2322 14.9996C91.2962 14.9996 90.8022 15.7276 90.7762 16.6506ZM106.11 13.2056L104.966 13.6086C104.862 12.9456 104.303 12.0356 103.016 12.0356C101.976 12.0356 101.235 12.7116 101.235 13.5696C101.235 14.2326 101.638 14.7396 102.418 14.9086L103.796 15.2076C105.33 15.5456 106.188 16.5076 106.188 17.7946C106.188 19.2246 104.966 20.5246 103.003 20.5246C100.78 20.5246 99.727 19.0946 99.558 17.7816L100.78 17.3916C100.871 18.4186 101.599 19.3676 102.99 19.3676C104.264 19.3676 104.888 18.7046 104.888 17.8986C104.888 17.2356 104.433 16.6636 103.51 16.4686L102.197 16.1826C100.884 15.8966 99.948 15.0386 99.948 13.6606C99.948 12.2176 101.287 10.9176 102.99 10.9176C105.07 10.9176 105.902 12.2046 106.11 13.2056ZM111.601 19.5756C111.263 20.2256 110.483 20.5246 109.755 20.5246C108.299 20.5246 107.415 19.4326 107.415 18.0156V14.0766H108.637V17.8336C108.637 18.6916 109.027 19.4456 110.054 19.4456C111.042 19.4456 111.536 18.7956 111.536 17.8466V14.0766H112.758V19.1726C112.758 19.6666 112.797 20.1086 112.823 20.3296H111.653C111.627 20.1866 111.601 19.8356 111.601 19.5756ZM116.052 22.7996H114.843V14.0766H116.026V15.0516C116.364 14.4276 117.105 13.9336 118.119 13.9336C119.991 13.9336 120.992 15.3766 120.992 17.1966C120.992 19.0556 119.913 20.4986 118.08 20.4986C117.118 20.4986 116.39 20.0436 116.052 19.4846V22.7996ZM119.744 17.1966C119.744 15.9486 119.042 15.0126 117.898 15.0126C116.78 15.0126 116.039 15.9486 116.039 17.1966C116.039 18.4836 116.78 19.4066 117.898 19.4066C119.029 19.4066 119.744 18.4836 119.744 17.1966ZM122.159 18.6526C122.159 17.5346 122.978 16.9106 124.057 16.7546L125.747 16.5076C126.124 16.4556 126.228 16.2606 126.228 16.0396C126.228 15.4286 125.825 14.9216 124.876 14.9216C124.018 14.9216 123.537 15.4546 123.459 16.1826L122.289 15.9096C122.419 14.7136 123.498 13.8816 124.85 13.8816C126.722 13.8816 127.45 14.9476 127.45 16.1696V19.3026C127.45 19.8486 127.502 20.1736 127.528 20.3296H126.332C126.306 20.1736 126.267 19.9396 126.267 19.4846C125.994 19.9266 125.37 20.5246 124.252 20.5246C122.978 20.5246 122.159 19.6406 122.159 18.6526ZM124.421 19.4976C125.422 19.4976 126.228 19.0166 126.228 17.6516V17.3656L124.317 17.6516C123.797 17.7296 123.407 18.0286 123.407 18.5876C123.407 19.0556 123.797 19.4976 124.421 19.4976ZM130.563 20.3296H129.354V10.9176H130.563V14.9606C130.862 14.4016 131.59 13.8946 132.63 13.8946C134.528 13.8946 135.503 15.3506 135.503 17.1706C135.503 19.0296 134.45 20.4986 132.591 20.4986C131.668 20.4986 130.953 20.0956 130.563 19.4196V20.3296ZM134.255 17.1706C134.255 15.8186 133.54 14.9736 132.409 14.9736C131.33 14.9736 130.55 15.8186 130.55 17.1706C130.55 18.5226 131.33 19.4066 132.409 19.4066C133.527 19.4066 134.255 18.5226 134.255 17.1706ZM136.67 18.6526C136.67 17.5346 137.489 16.9106 138.568 16.7546L140.258 16.5076C140.635 16.4556 140.739 16.2606 140.739 16.0396C140.739 15.4286 140.336 14.9216 139.387 14.9216C138.529 14.9216 138.048 15.4546 137.97 16.1826L136.8 15.9096C136.93 14.7136 138.009 13.8816 139.361 13.8816C141.233 13.8816 141.961 14.9476 141.961 16.1696V19.3026C141.961 19.8486 142.013 20.1736 142.039 20.3296H140.843C140.817 20.1736 140.778 19.9396 140.778 19.4846C140.505 19.9266 139.881 20.5246 138.763 20.5246C137.489 20.5246 136.67 19.6406 136.67 18.6526ZM138.932 19.4976C139.933 19.4976 140.739 19.0166 140.739 17.6516V17.3656L138.828 17.6516C138.308 17.7296 137.918 18.0286 137.918 18.5876C137.918 19.0556 138.308 19.4976 138.932 19.4976ZM143.28 18.7046L144.385 18.3146C144.463 18.9646 144.957 19.4846 145.841 19.4846C146.53 19.4846 146.907 19.0946 146.907 18.6526C146.907 18.2626 146.621 17.9636 146.101 17.8466L145.035 17.6126C144.06 17.4046 143.475 16.7416 143.475 15.8576C143.475 14.7916 144.476 13.8816 145.698 13.8816C147.414 13.8816 147.947 14.9996 148.077 15.5586L146.998 15.9616C146.946 15.6366 146.686 14.9216 145.698 14.9216C145.074 14.9216 144.658 15.3246 144.658 15.7536C144.658 16.1306 144.892 16.4036 145.373 16.5076L146.387 16.7286C147.518 16.9756 148.116 17.6646 148.116 18.5876C148.116 19.4716 147.375 20.5246 145.828 20.5246C144.112 20.5246 143.384 19.4196 143.28 18.7046ZM150.472 16.5596H153.891C153.865 15.6626 153.28 14.9606 152.175 14.9606C151.148 14.9606 150.524 15.7536 150.472 16.5596ZM154.073 18.1846L155.126 18.5486C154.775 19.6536 153.774 20.5246 152.318 20.5246C150.641 20.5246 149.172 19.3026 149.172 17.1836C149.172 15.2206 150.589 13.8816 152.162 13.8816C154.086 13.8816 155.165 15.2076 155.165 17.1576C155.165 17.3136 155.152 17.4696 155.139 17.5476H150.433C150.459 18.6656 151.265 19.4456 152.318 19.4456C153.332 19.4456 153.839 18.8866 154.073 18.1846Z" fill="#11181C"/>+<rect x="0.5" y="0.82959" width="169" height="29" rx="4.5" stroke="#E6E8EB"/>+<defs>+<linearGradient id="paint0_linear_264_4875" x1="17.9324" y1="15.1306" x2="23.1177" y2="17.2724" gradientUnits="userSpaceOnUse">+<stop stop-color="#249361"/>+<stop offset="1" stop-color="#3ECF8E"/>+</linearGradient>+<linearGradient id="paint1_linear_264_4875" x1="15.6438" y1="11.949" x2="18.0544" y2="16.4182" gradientUnits="userSpaceOnUse">+<stop/>+<stop offset="1" stop-opacity="0"/>+</linearGradient>+<clipPath id="clip0_264_4875">+<rect width="14" height="14.7368" fill="white" transform="translate(11 7.96118)"/>+</clipPath>+</defs>+</svg>diff --git a/package-lock.json b/package-lock.jsonindex e37f325ad78..53a32a76489 100644--- a/package-lock.json+++ b/package-lock.json@@ -23920,8 +23920,9 @@"license": "MIT"},"node_modules/graphql": {- "version": "16.6.0",- "license": "MIT",+ "version": "16.8.1",+ "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz",+ "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==","engines": {"node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0"}@@ -42948,7 +42949,7 @@"file-saver": "^2.0.5","framer-motion": "^6.5.1","generate-password": "^1.7.0",- "graphql": "^16.6.0",+ "graphql": "^16.8.1","graphql-ws": "^5.11.3","html-to-image": "^1.10.8","immutability-helper": "^3.1.1",diff --git a/packages/shared-data/tweets.ts b/packages/shared-data/tweets.tsindex e73a96b6ec5..842800d2857 100644--- a/packages/shared-data/tweets.ts+++ b/packages/shared-data/tweets.ts@@ -161,12 +161,6 @@ const tweets = [handle: 'louisbarclay',img_url: '/images/twitter-profiles/6f1O8ZOW_400x400.jpg',},- {- text: "@MongoDB or @MySQL?!?! Please, let me introduce you to @supabase and the wonderful world of @PostgreSQL before it's too late!!",- url: 'https://twitter.com/jim_bisenius/status/1361772978841788416',- handle: 'jim_bisenius',- img_url: '/images/twitter-profiles/rLgwUZSB_400x400.jpg',- },{text: 'Where has @supabase been all my life? 😍',url: 'https://twitter.com/Elsolo244/status/1360257201911320579',@@ -185,12 +179,6 @@ const tweets = [handle: 'zippoxer',img_url: '/images/twitter-profiles/6rd3xub9_400x400.png',},- {- text: '@supabase is the answer to all of firebase’s problems imo',- url: 'https://twitter.com/jim_bisenius/status/1358590362953142278',- handle: 'jim_bisenius',- img_url: '/images/twitter-profiles/rLgwUZSB_400x400.jpg',- },{text: '@supabase is insane.',url: 'https://twitter.com/codewithbhargav/status/1357647840911126528',@@ -203,12 +191,6 @@ const tweets = [handle: 'nerdburn',img_url: '/images/twitter-profiles/66VSV9Mm_400x400.png',},- {- text: 'I’m probably the wrong person to ask because I pick tools based on UX. Supabase was immediately approachable: instant setup, fast web app, auth, and easy APIs. Same reason I liked Firebase when I first discovered.',- url: 'https://twitter.com/jasonbarone/status/1357015483619422210',- handle: 'jasonbarone',- img_url: '/images/twitter-profiles/6zCnwpvi_400x400.jpg',- },{text: 'Now things are starting to get interesting! Firebase has long been the obvious choice for many #flutter devs for the ease of use. But their databases are NoSQL, which has its downsides... Seems like @supabase is working on something interesting here!',url: 'https://twitter.com/RobertBrunhage/status/1356973695865085953',@@ -221,12 +203,6 @@ const tweets = [handle: 'NavicsteinR',img_url: '/images/twitter-profiles/w_zNZAs7_400x400.jpg',},- {- text: 'Next.js, @supabase, @stripe, and @vercel. Supastack™',- url: 'https://twitter.com/jasonbarone/status/1356765411832922115',- handle: 'jasonbarone',- img_url: '/images/twitter-profiles/6zCnwpvi_400x400.jpg',- },{text: "I've really enjoyed the DX! Extremely fun to use, which is odd to say about a database at least for me.",url: 'https://twitter.com/Soham_Asmi/status/1373086068132745217',@@ -245,12 +221,6 @@ const tweets = [handle: 'michael_webdev',img_url: '/images/twitter-profiles/SvAyLaWV_400x400.jpg',},- {- text: 'Next.js, @supabase, @stripe, and @vercel. Supastack™',- url: 'https://twitter.com/jasonbarone/status/1356765411832922115?s=20',- handle: 'jasonbarone',- img_url: '/images/twitter-profiles/6zCnwpvi_400x400.jpg',- },{text: 'I just learned about @supabase and im in love 😍 Supabase is an open source Firebase alternative! EarListen (& react) to database changes 💁 Manage users & permissions 🔧 Simple UI for database interaction',url: 'https://twitter.com/0xBanana/status/1373677301905362948',diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsxindex 9d4fe97bed4..7d740a2ad47 100644--- a/packages/ui/src/components/Command/Command.utils.tsx+++ b/packages/ui/src/components/Command/Command.utils.tsx@@ -4,10 +4,10 @@ import * as React from 'react'import { cn } from './../../lib/utils'import { DetailedHTMLProps, HTMLAttributes, KeyboardEventHandler } from 'react'+import { LoadingLine } from '../LoadingLine/LoadingLine'import { Modal } from '../Modal'import { ModalProps } from '../Modal/Modal'import { useCommandMenu } from './CommandMenuProvider'-import { LoadingLine } from '../LoadingLine/LoadingLine'type CommandPrimitiveElement = React.ElementRef<typeof CommandPrimitive>type CommandPrimitiveProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive>@@ -312,28 +312,24 @@ CommandShortcut.displayName = 'CommandLabel'export interface TextHighlighterPropsextends DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {- text: string | undefined- query: string | undefined+ text: string+ query: string}export const TextHighlighter = ({ text, query, ...props }: TextHighlighterProps) => {- const highlightMatches = (text?: string) => {- if (!text) {- return ''- }+ // Wrap all instances of `query` in a span to make them bold+ const elements = text.split(query).flatMap((part, index, parts) => {+ const returnValue = [<>{part}</>]- if (!query) {- return text+ // Add back the wrapped `query` (if it's not the last element)+ if (index !== parts.length - 1) {+ returnValue.push(<span className="font-semibold text-scale-1200">{query}</span>)}- const regex = new RegExp(query, 'gi')- return text.replace(- regex,- (match) => `<span class="font-semibold text-scale-1200">${match}</span>`- )- }+ return returnValue+ })- return <span dangerouslySetInnerHTML={{ __html: highlightMatches(text) }} {...props} />+ return <span {...props}>{elements}</span>}TextHighlighter.displayName = 'TextHighlighter'diff --git a/packages/ui/src/components/Command/DocsSearch.tsx b/packages/ui/src/components/Command/DocsSearch.tsxindex 58107835dc1..03269cc85b4 100644--- a/packages/ui/src/components/Command/DocsSearch.tsx+++ b/packages/ui/src/components/Command/DocsSearch.tsx@@ -33,13 +33,13 @@ export enum PageType {}export interface PageSection {- slug: string- heading: string+ slug?: string+ heading?: string}export interface PageMetadata {title: string- description: string+ description?: string}export interface PageResult {@@ -185,9 +185,11 @@ const DocsSearch = () => {<CommandLabel><TextHighlighter text={page.meta.title} query={search} /></CommandLabel>- <div className="text-xs text-scale-900">- <TextHighlighter text={page.meta.description} query={search} />- </div>+ {page.meta.description && (+ <div className="text-xs text-scale-900">+ <TextHighlighter text={page.meta.description} query={search} />+ </div>+ )}</div></div>@@ -216,9 +218,11 @@ const DocsSearch = () => {query={search}/></cite>- <CommandLabel>- <TextHighlighter text={section.heading} query={search} />- </CommandLabel>+ {section.heading && (+ <CommandLabel>+ <TextHighlighter text={section.heading} query={search} />+ </CommandLabel>+ )}</div></div><ChevronArrow />@@ -302,9 +306,9 @@ export function formatSectionUrl(page: PageResult, section: PageSection) {switch (page.type) {case PageType.Markdown:case PageType.GithubDiscussion:- return `${formatPageUrl(page)}#${section.slug}`+ return `${formatPageUrl(page)}#${section.slug ?? ''}`case PageType.Reference:- return `${formatPageUrl(page)}/${section.slug}`+ return `${formatPageUrl(page)}/${section.slug ?? ''}`default:throw new Error(`Unknown page type '${page.type}'`)}diff --git a/packages/ui/src/components/Tabs/Tabs.tsx b/packages/ui/src/components/Tabs/Tabs.tsxindex 3466dc5d262..5df8dbd49e2 100644--- a/packages/ui/src/components/Tabs/Tabs.tsx+++ b/packages/ui/src/components/Tabs/Tabs.tsx@@ -1,6 +1,6 @@import * as TabsPrimitive from '@radix-ui/react-tabs'import { useRouter } from 'next/router'-import * as React from 'react'+import { Children, useEffect, useState } from 'react'import styleHandler from '../../lib/theme/styleHandler'import { useTabGroup } from './TabsProvider'@@ -9,6 +9,7 @@ interface TabsProps {defaultActiveId?: stringactiveId?: stringsize?: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'+ queryGroup?: stringblock?: booleantabBarGutter?: numbertabBarStyle?: React.CSSProperties@@ -30,6 +31,7 @@ const Tabs: React.FC<TabsProps> & TabsSubComponents = ({activeId,type = 'pills',size = 'tiny',+ queryGroup,block,onChange,onClick,@@ -41,29 +43,45 @@ const Tabs: React.FC<TabsProps> & TabsSubComponents = ({}) => {// toArray is used here to filter out invalid children// another method would be to use React.Children.map- const children = React.Children.toArray(_children) as PanelPropsProps[]+ const children = Children.toArray(_children) as PanelPropsProps[]+ const tabIds = children.map((tab) => tab.props.id)++ const router = useRouter()+ const queryTabs = queryGroup ? router.query[queryGroup] : undefined+ const [queryTabRaw] = Array.isArray(queryTabs) ? queryTabs : [queryTabs]+ const queryTab = queryTabRaw && tabIds.includes(queryTabRaw) ? queryTabRaw : undefined- const [activeTab, setActiveTab] = React.useState(- defaultActiveId ??+ const [activeTab, setActiveTab] = useState(+ queryTab ??+ defaultActiveId ??// if no defaultActiveId is set use the first panelchildren?.[0]?.props?.id)- const router = useRouter()- const hash = router?.asPath?.split('#')[1]?.toUpperCase()+ // If query param present for the query group, switch to that tab.+ useEffect(() => {+ if (queryTab) {+ setActiveTab(queryTab)+ setGroupActiveId?.(queryTab)+ }+ }, [queryTab])let __styles = styleHandler('tabs')- const tabIds = children.map((tab) => tab.props.id)-const { groupActiveId, setGroupActiveId } = useTabGroup(tabIds)- const active = activeId ?? groupActiveId ?? activeTab ?? hash+ const active = activeId ?? groupActiveId ?? activeTabfunction onTabClick(id: string) {setActiveTab(id)setGroupActiveId?.(id)+ if (queryGroup) {+ const url = new URL(document.location.href)+ url.searchParams.set(queryGroup, id)+ window.history.replaceState(undefined, '', url)+ }+onClick?.(id)if (id !== active) {onChange?.(id)diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex 601b892c97b..102904bb959 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -1648,6 +1648,56 @@ functions:[operators](/docs/guides/database/json#query-the-jsonb-data) forquerying JSON data.hideCodeBlock: true+ - id: querying-foreign-table-with-inner-join+ name: Querying foreign table with inner join+ code: |+ ```ts+ const { data, error } = await supabase+ .from('cities')+ .select('name, countries!inner(name)')+ .eq('countries.name', 'Indonesia')+ ```+ data:+ sql: |+ ```sql+ create table countries (+ "id" "uuid" primary key default "extensions"."uuid_generate_v4"() not null,+ "name" text+ );++ create table cities (+ "id" "uuid" primary key default "extensions"."uuid_generate_v4"() not null,+ "name" text,+ "country_id" "uuid" references public.countries on delete cascade+ );++ with country as (+ insert into countries (name)+ values ('united kingdom') returning id+ )+ insert into cities (name, country_id) values+ ('London', (select id from country)),+ ('Manchester', (select id from country)),+ ('Liverpool', (select id from country)),+ ('Bristol', (select id from country));+ ```+ response: |+ ```json+ {+ "data": [+ {+ "name": "Bali",+ "countries": {"name": "Indonesia"}+ }+ ],+ "status": 200,+ "statusText": "OK"+ }+ ```+ description: |+ If you don't want to return the foreign table contents, you can leave the parenthesis empty.+ Like `.select('name, countries!inner()')`.+ hideCodeBlock: true- id: inserttitle: 'Create data: insert()'diff --git a/spec/supabase_py_v2.yml b/spec/supabase_py_v2.ymlindex 34e1e68a6fa..560d5a76b38 100644--- a/spec/supabase_py_v2.yml+++ b/spec/supabase_py_v2.yml@@ -747,7 +747,7 @@ functions:code: |```with open(source, 'rb+') as f:- res = supabase.storage.from_('bucket').upload(destination, f)+ res = supabase.storage.from_('bucket_name').upload(destination, f)```- id: from-movetitle: 'from_.move()'@@ -761,7 +761,7 @@ functions:name: Move filecode: |```- res = supabase.storage.from_(bucket).move('public/avatar1.png', 'private/avatar2.png')+ res = supabase.storage.from_('bucket_name').move('public/avatar1.png', 'private/avatar2.png')```- id: from-create-signed-url@@ -776,7 +776,7 @@ functions:name: Create Signed URLcode: |```- res = supabase.storage.from_(bucket_name).create_signed_url(filepath, expiry_duration)+ res = supabase.storage.from_('bucket_name').create_signed_url(filepath, expiry_duration)```- id: from-get-public-url@@ -792,7 +792,7 @@ functions:name: Returns the URL for an asset in a public bucketcode: |```- res = supabase.storage.from_(bucket_name).get_public_url('test/avatar1.jpg')+ res = supabase.storage.from_('bucket_name').get_public_url('test/avatar1.jpg')```- id: from-download@@ -808,7 +808,7 @@ functions:code: |```with open(destination, 'wb+') as f:- res = supabase.storage.from_(bucket_name).download(source)+ res = supabase.storage.from_('bucket_name').download(source)f.write(res)```@@ -824,7 +824,7 @@ functions:name: Delete filecode: |```- res = supabase.storage.from_('test').remove('test.jpg')+ res = supabase.storage.from_('bucket_name').remove('test.jpg')```- id: from-listtitle: 'from_.list()'@@ -838,7 +838,7 @@ functions:name: List files in a bucketcode: |```- res = supabase.storage.from_('test').list()+ res = supabase.storage.from_('bucket_name').list()```- id: subscribetitle: on().subscribe()diff --git a/studio/components/grid/components/grid/Grid.tsx b/studio/components/grid/components/grid/Grid.tsxindex 92538acc3bd..9fea40d22d0 100644--- a/studio/components/grid/components/grid/Grid.tsx+++ b/studio/components/grid/components/grid/Grid.tsx@@ -181,7 +181,7 @@ export const Grid = memo(style={{ height: `calc(100% - 35px)` }}className="flex flex-col items-center justify-center">- <p className="text-sm text">This table is empty</p>+ <p className="text-sm text-light">This table is empty</p>{onAddRow !== undefined && onImportData !== undefined && (<><p className="text-sm text-light mt-1">diff --git a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsxindex bff784918f3..ffd0f7c13b8 100644--- a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx+++ b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx@@ -1,10 +1,11 @@import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useCheckPermissions } from 'hooks'-import { IS_PLATFORM } from 'lib/constants'import { useState } from 'react'import semver from 'semver'-import { Button, Dropdown, IconChevronDown, IconMail, IconPlus, IconUserPlus } from 'ui'++import { useCheckPermissions } from 'hooks'+import { IS_PLATFORM } from 'lib/constants'+import { Button, Dropdown, IconChevronDown, IconMail, IconUserPlus } from 'ui'import CreateUserModal from './CreateUserModal'import InviteUserModal from './InviteUserModal'@@ -37,7 +38,7 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {<>{inviteEnabled && (<Tooltip.Root delayDuration={0}>- <Tooltip.Trigger className="w-full">+ <Tooltip.Trigger className="w-full text-left"><Dropdown.Itemicon={<IconMail size="small" />}disabled={!canInviteUsers}@@ -67,7 +68,7 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {)}<Tooltip.Root delayDuration={0}>- <Tooltip.Trigger className="w-full">+ <Tooltip.Trigger className="w-full text-left"><Dropdown.Itemicon={<IconUserPlus size="small" />}disabled={!canCreateUsers}diff --git a/studio/components/interfaces/Auth/Users/CreateUserModal.tsx b/studio/components/interfaces/Auth/Users/CreateUserModal.tsxindex 81ad96fa4e0..2f90c58b38e 100644--- a/studio/components/interfaces/Auth/Users/CreateUserModal.tsx+++ b/studio/components/interfaces/Auth/Users/CreateUserModal.tsx@@ -1,12 +1,11 @@import { PermissionAction } from '@supabase/shared-types/out/constants'+import { useParams } from 'common'import { observer } from 'mobx-react-lite'-import { useContext } from 'react'import { Button, Checkbox, Form, IconLock, IconMail, Input, Loading, Modal } from 'ui'import { useUserCreateMutation } from 'data/auth/user-create-mutation'import { useProjectApiQuery } from 'data/config/project-api-query'import { useCheckPermissions, useStore } from 'hooks'-import { PageContext } from 'pages/project/[ref]/auth/users'export type CreateUserModalProps = {visible: boolean@@ -15,8 +14,7 @@ export type CreateUserModalProps = {const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {const { ui } = useStore()- const PageState: any = useContext(PageContext)- const projectRef = PageState.projectRef+ const { ref: projectRef } = useParams()const { data, isLoading, isSuccess } = useProjectApiQuery({ projectRef }, { enabled: visible })@@ -48,7 +46,6 @@ const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {message: `Successfully created user: ${res.email}`,})setVisible(false)- await PageState.fetchData(1)},})@@ -61,7 +58,7 @@ const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {}const { protocol, endpoint, serviceApiKey } = data.autoApiService- createUser({ endpoint, protocol, serviceApiKey, user: values })+ createUser({ projectRef, endpoint, protocol, serviceApiKey, user: values })}return (diff --git a/studio/components/interfaces/Auth/Users/InviteUserModal.tsx b/studio/components/interfaces/Auth/Users/InviteUserModal.tsxindex 494c4b74516..6d3d14a012e 100644--- a/studio/components/interfaces/Auth/Users/InviteUserModal.tsx+++ b/studio/components/interfaces/Auth/Users/InviteUserModal.tsx@@ -1,12 +1,10 @@import { PermissionAction } from '@supabase/shared-types/out/constants'+import { useParams } from 'common'import { observer } from 'mobx-react-lite'-import { useContext } from 'react'import { Button, Form, IconMail, Input, Modal } from 'ui'-import { useParams } from 'common'import { useUserInviteMutation } from 'data/auth/user-invite-mutation'import { useCheckPermissions, useStore } from 'hooks'-import { PageContext } from 'pages/project/[ref]/auth/users'export type InviteUserModalProps = {visible: boolean@@ -15,8 +13,7 @@ export type InviteUserModalProps = {const InviteUserModal = ({ visible, setVisible }: InviteUserModalProps) => {const { ui } = useStore()- const { ref } = useParams()- const PageState: any = useContext(PageContext)+ const { ref: projectRef } = useParams()const handleToggle = () => setVisible(!visible)const { mutateAsync: inviteUser, isLoading: isInviting } = useUserInviteMutation()@@ -37,10 +34,9 @@ const InviteUserModal = ({ visible, setVisible }: InviteUserModalProps) => {}const onInviteUser = async (values: any) => {- if (!ref) return console.error('Project ref is required')+ if (!projectRef) return console.error('Project ref is required')- await inviteUser({ projectRef: ref, email: values.email })- PageState.fetchData(1)+ await inviteUser({ projectRef, email: values.email })ui.setNotification({ category: 'success', message: `Sent invite email to ${values.email}` })setVisible(false)}diff --git a/studio/components/interfaces/Auth/Users/UserDropdown.tsx b/studio/components/interfaces/Auth/Users/UserDropdown.tsxindex 0f37278e54e..f8f7f77029c 100644--- a/studio/components/interfaces/Auth/Users/UserDropdown.tsx+++ b/studio/components/interfaces/Auth/Users/UserDropdown.tsx@@ -1,19 +1,16 @@import * as Tooltip from '@radix-ui/react-tooltip'-import { observer } from 'mobx-react-lite'-import { useContext } from 'react'+import { useParams } from 'common'import { Button, Dropdown, IconMail, IconMoreHorizontal, IconShieldOff, IconTrash } from 'ui'-import { useParams } from 'common'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useUserDeleteMFAFactorsMutation } from 'data/auth/user-delete-mfa-factors-mutation'import { useUserDeleteMutation } from 'data/auth/user-delete-mutation'import { useUserResetPasswordMutation } from 'data/auth/user-reset-password-mutation'import { useUserSendMagicLinkMutation } from 'data/auth/user-send-magic-link-mutation'import { useUserSendOTPMutation } from 'data/auth/user-send-otp-mutation'+import { User } from 'data/auth/users-query'import { useStore } from 'hooks'import { timeout } from 'lib/helpers'-import { PageContext } from 'pages/project/[ref]/auth/users'-import { User } from './Users.types'interface UserDropdownProps {user: User@@ -24,7 +21,6 @@ interface UserDropdownProps {const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdownProps) => {const { ui } = useStore()const { ref } = useParams()- const PageState: any = useContext(PageContext)const { mutate: resetPassword, isLoading: isResetting } = useUserResetPasswordMutation({onSuccess: () => {@@ -80,8 +76,6 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdowntry {await deleteUser({ projectRef: ref, user })ui.setNotification({ category: 'success', message: `Successfully deleted ${user.email}` })- PageState.users = PageState.users.filter((x: any) => x.id != user.id)- PageState.totalUsers -= 1} catch (error) {}},})@@ -94,6 +88,8 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdownmessage: `This is permanent! Are you sure you want to delete the user's MFA factors?`,onAsyncConfirm: async () => {if (!ref) return console.error('Project ref is required')+ if (!user.id) return console.error('User id is required')+try {await deleteUserMFAFactors({ projectRef: ref, userId: user.id })ui.setNotification({@@ -203,4 +199,4 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown)}-export default observer(UserDropdown)+export default UserDropdowndiff --git a/studio/components/interfaces/Auth/Users/Users.tsx b/studio/components/interfaces/Auth/Users/Users.tsxindex ecccbe062dd..2d19c364152 100644--- a/studio/components/interfaces/Auth/Users/Users.tsx+++ b/studio/components/interfaces/Auth/Users/Users.tsx@@ -1,46 +1,36 @@-import { observer } from 'mobx-react-lite'-import { useContext, useEffect } from 'react'+import { useParams } from 'common'+import { useState } from 'react'import { Button, IconRefreshCw, IconSearch, IconX, Input, Listbox } from 'ui'-import { PageContext } from 'pages/project/[ref]/auth/users'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'+import { useUsersQuery } from 'data/auth/users-query'import AddUserDropdown from './AddUserDropdown'import UsersList from './UsersList'const Users = () => {- const PageState: any = useContext(PageContext)+ const { project } = useProjectContext()+ const { ref: projectRef } = useParams()- useEffect(() => {- PageState.fetchData(1)- }, [])+ const [page, setPage] = useState(1)+ const [search, setSearch] = useState('')+ const [filterKeywords, setFilterKeywords] = useState('')+ const [filterVerified, setFilterVerified] = useState<'verified' | 'unverified'>()- function onFilterChange(e: any) {- PageState.filterInputValue = e.target.value- }+ const { data, isLoading, isSuccess, refetch } = useUsersQuery({+ projectRef,+ page,+ keywords: filterKeywords,+ verified: filterVerified,+ })function onVerifiedFilterChange(e: any) {- PageState.filterVerified = e- onSearchUser()- }-- function onFilterKeyPress(e: any) {- // enter key- if (e.keyCode == 13) onSearchUser()- }-- function onSearchUser() {- PageState.filterKeywords = PageState.filterInputValue- PageState.filterVerified = PageState.filterVerified- PageState.fetchData(1)+ setFilterVerified(e)}function clearSearch() {- PageState.filterInputValue = ''- PageState.filterKeywords = ''- PageState.fetchData(1)- }-- function refreshUsers() {- PageState.fetchData(1)+ setSearch('')+ setFilterKeywords('')+ setFilterVerified(undefined)}return (@@ -49,16 +39,18 @@ const Users = () => {<div className="relative flex space-x-4"><Inputsize="small"- value={PageState.filterInputValue}- onChange={onFilterChange}- onKeyDown={onFilterKeyPress}+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ onKeyDown={(e) => {+ if (e.keyCode == 13) setFilterKeywords(search)+ }}className="min-w-[275px]"name="email"id="email"placeholder="Search by email or phone number"icon={<IconSearch size="tiny" />}actions={[- PageState.filterInputValue && (+ search && (<Buttonsize="tiny"type="text"@@ -70,7 +62,7 @@ const Users = () => {/><Listboxsize="small"- value={PageState.filterVerified}+ value={filterVerified}onChange={onVerifiedFilterChange}name="verified"id="verified"@@ -92,19 +84,28 @@ const Users = () => {size="tiny"icon={<IconRefreshCw />}type="default"- loading={PageState.usersLoading}- onClick={refreshUsers}+ loading={isLoading}+ onClick={() => refetch()}>Reload</Button>- <AddUserDropdown projectKpsVersion={PageState?.projectKpsVersion} />+ <AddUserDropdown projectKpsVersion={project?.kpsVersion} /></div></div><section className="thin-scrollbars mt-4 overflow-visible px-6"><div className="section-block--body relative overflow-x-auto rounded"><div className="inline-block min-w-full align-middle">- <UsersList />+ <UsersList+ page={page}+ setPage={setPage}+ keywords={filterKeywords}+ verified={filterVerified}+ total={data?.total ?? 0}+ users={data?.users ?? []}+ isLoading={isLoading}+ isSuccess={isSuccess}+ /></div></div></section>@@ -112,4 +113,4 @@ const Users = () => {)}-export default observer(Users)+export default Usersdiff --git a/studio/components/interfaces/Auth/Users/Users.types.ts b/studio/components/interfaces/Auth/Users/Users.types.tsdeleted file mode 100644index bc47af875d8..00000000000--- a/studio/components/interfaces/Auth/Users/Users.types.ts+++ /dev/null@@ -1,15 +0,0 @@-export interface User {- id: string- email: string- phone: string- email_confirmed_at: string- phone_confirmed_at: string- created_at: string- last_sign_in_at: string- raw_app_meta_data?: {- provider: string- }- app_metadata?: {- provider: string- }-}diff --git a/studio/components/interfaces/Auth/Users/UsersList.tsx b/studio/components/interfaces/Auth/Users/UsersList.tsxindex 652858cb5f1..434bb8de3c1 100644--- a/studio/components/interfaces/Auth/Users/UsersList.tsx+++ b/studio/components/interfaces/Auth/Users/UsersList.tsx@@ -1,17 +1,33 @@-import { useContext } from 'react'-import { observer } from 'mobx-react-lite'+import { PermissionAction } from '@supabase/shared-types/out/constants'import { IconAlertCircle, Loading } from 'ui'-import { PageContext } from 'pages/project/[ref]/auth/users'import Table from 'components/to-be-cleaned/Table'+import { useCheckPermissions } from 'hooks'import UserListItem from './UsersListItem'import UsersPagination from './UsersPagination'-import { useCheckPermissions } from 'hooks'-import { PermissionAction } from '@supabase/shared-types/out/constants'+import { User } from 'data/auth/users-query'++interface UsersListProps {+ page: number+ setPage: (page: number) => void+ keywords: string+ verified?: 'verified' | 'unverified'-const UsersList = ({}) => {- const PageState: any = useContext(PageContext)+ total: number+ users: User[]+ isLoading: boolean+ isSuccess: boolean+}+const UsersList = ({+ page,+ setPage,+ keywords,+ total,+ users,+ isLoading,+ isSuccess,+}: UsersListProps) => {// Check once on the top level, rather than checking for every rowconst canRemoveUser = useCheckPermissions(PermissionAction.TENANT_SQL_DELETE, 'auth.users')const canRemoveMFAFactors = useCheckPermissions(@@ -20,7 +36,7 @@ const UsersList = ({}) => {)return (- <Loading active={PageState.usersLoading}>+ <Loading active={isLoading}><Tablehead={<>@@ -35,7 +51,7 @@ const UsersList = ({}) => {}body={<>- {!PageState.usersLoading && PageState.users.length == 0 && (+ {isSuccess && users.length == 0 && (<Table.tr>{/* @ts-ignore */}<Table.td@@ -45,16 +61,17 @@ const UsersList = ({}) => {<div className="flex items-center space-x-3 opacity-75"><IconAlertCircle size={16} strokeWidth={2} /><p className="text-scale-1000">- {PageState.filterKeywords- ? `No users matched the search query "${PageState.filterKeywords}"`+ {keywords+ ? `No users matched the search query "${keywords}"`: 'No users in your project yet'}</p></div></Table.td></Table.tr>)}- {PageState.users.length > 0 &&- PageState.users.map((x: any) => (+ {isSuccess &&+ users.length > 0 &&+ users.map((x: any) => (<UserListItemkey={x.id}user={x}@@ -64,7 +81,7 @@ const UsersList = ({}) => {))}<Table.tr><Table.td colSpan={7}>- <UsersPagination />+ <UsersPagination total={total} page={page} setPage={setPage} /></Table.td></Table.tr></>@@ -74,4 +91,4 @@ const UsersList = ({}) => {)}-export default observer(UsersList)+export default UsersListdiff --git a/studio/components/interfaces/Auth/Users/UsersListItem.tsx b/studio/components/interfaces/Auth/Users/UsersListItem.tsxindex a43497bf10d..c21c8e71cce 100644--- a/studio/components/interfaces/Auth/Users/UsersListItem.tsx+++ b/studio/components/interfaces/Auth/Users/UsersListItem.tsx@@ -1,11 +1,10 @@-import { observer } from 'mobx-react-lite'import { Badge } from 'ui'import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'import Table from 'components/to-be-cleaned/Table'import UserDropdown from './UserDropdown'-import { User } from './Users.types'import { getDateFromIsoString } from './Users.utils'+import { User } from 'data/auth/users-query'interface UserListItemProps {user: User@@ -29,9 +28,7 @@ const UserListItem = ({ user, canRemoveUser, canRemoveMFAFactors }: UserListItem<span className="text-scale-1200">{!user.phone ? '-' : user.phone}</span></Table.td><Table.td className="table-cell">- <span className="capitalize text-scale-1200">- {user?.raw_app_meta_data?.provider || user?.app_metadata?.provider}- </span>+ <span className="capitalize text-scale-1200">{user?.raw_app_meta_data?.provider}</span></Table.td><Table.td className="table-cell"><span className="text-scale-1200">{createdAt?.format('DD MMM, YYYY HH:mm')}</span>@@ -64,4 +61,4 @@ const UserListItem = ({ user, canRemoveUser, canRemoveMFAFactors }: UserListItem)}-export default observer(UserListItem)+export default UserListItemdiff --git a/studio/components/interfaces/Auth/Users/UsersPagination.tsx b/studio/components/interfaces/Auth/Users/UsersPagination.tsxindex b66226c4600..d59f0c0ff1b 100644--- a/studio/components/interfaces/Auth/Users/UsersPagination.tsx+++ b/studio/components/interfaces/Auth/Users/UsersPagination.tsx@@ -1,41 +1,49 @@-import { useContext } from 'react'-import { observer } from 'mobx-react-lite'import { Button } from 'ui'-import { PageContext } from 'pages/project/[ref]/auth/users'+import { USERS_PAGE_LIMIT } from 'data/auth/users-query'-const UsersPagination = () => {- const PageState: any = useContext(PageContext)+interface UsersPaginationProps {+ total: number+ page: number+ setPage: (page: number) => void+}++const UsersPagination = ({ total, page, setPage }: UsersPaginationProps) => {+ const startRowFromPage = USERS_PAGE_LIMIT * (page - 1) + 1+ const fromRow = startRowFromPage > total ? total : startRowFromPage- function onNext() {- PageState.fetchData(PageState.page + 1)- }+ const endRowFromPage = USERS_PAGE_LIMIT * page+ const toRow = endRowFromPage > total ? total : endRowFromPage- function onPrevious() {- PageState.fetchData(PageState.page - 1)- }+ const hasPrevious = page > 1+ const hasNext = toRow < totalreturn (<nav className="flex items-center justify-between overflow-hidden" aria-label="Pagination"><div className="hidden sm:block"><p className="text-xs text-scale-900">Showing- <span className="px-1 font-medium text-scale-1100">{PageState.fromRow}</span>+ <span className="px-1 font-medium text-scale-1100">{fromRow}</span>to- <span className="px-1 font-medium text-scale-1100">{PageState.toRow}</span>+ <span className="px-1 font-medium text-scale-1100">{toRow}</span>of- <span className="px-1 font-medium text-scale-1100">{PageState.totalUsers}</span>+ <span className="px-1 font-medium text-scale-1100">{total}</span>results</p></div><div className="flex flex-1 justify-between sm:justify-end">- {PageState.hasPrevious && (- <Button type="secondary" disabled={!PageState.hasPrevious} onClick={onPrevious}>+ {hasPrevious && (+ <Button type="default" disabled={!hasPrevious} onClick={() => setPage(page - 1)}>Previous</Button>)}- {PageState.hasNext && (- <Button type="secondary" disabled={!PageState.hasNext} className="ml-3" onClick={onNext}>+ {hasNext && (+ <Button+ type="default"+ disabled={!hasNext}+ className="ml-3"+ onClick={() => setPage(page + 1)}+ >Next</Button>)}@@ -44,4 +52,4 @@ const UsersPagination = () => {)}-export default observer(UsersPagination)+export default UsersPaginationdiff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsxindex 1a32bb22545..a1e34e697cd 100644--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx@@ -15,6 +15,8 @@ import { useSchemasQuery } from 'data/database/schemas-query'import { useStore } from 'hooks'import { isResponseOk } from 'lib/common/fetch'import { SupaResponse } from 'types'+import { convertArgumentTypes, convertConfigParams, hasWhitespace } from './Functions.utils'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'// [Refactor] Remove local state, just use the Form component@@ -89,37 +91,6 @@ class CreateFunctionFormState {}}-/**- * convert argument_types = "a integer, b integer"- * to args = {value: [{name:'a', type:'integer'}, {name:'b', type:'integer'}]}- */-function convertArgumentTypes(value: string) {- const items = value?.split(',')- if (isEmpty(value) || !items || items?.length == 0) return { value: [] }- const temp = items.map((x) => {- const str = x.trim()- const space = str.indexOf(' ')- const name = str.slice(0, space !== 1 ? space : 0)- const type = str.slice(space + 1)- return { name, type }- })- return { value: temp }-}--/**- * convert config_params = {search_path: "auth, public"}- * to {value: [{name: 'search_path', value: 'auth, public'}]}- */-function convertConfigParams(value: Dictionary<any>) {- const temp = []- if (value) {- for (var key in value) {- temp.push({ name: key, value: value[key] })- }- }- return { value: temp }-}-interface ICreateFunctionStore {loading: booleanformState: CreateFunctionFormState@@ -283,10 +254,6 @@ class CreateFunctionStore implements ICreateFunctionStore {}}-function hasWhitespace(value: string) {- return /\s/.test(value)-}-const CreateFunctionContext = createContext<ICreateFunctionStore | null>(null)interface CreateFunctionProps {@@ -296,10 +263,9 @@ interface CreateFunctionProps {}const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {- const { project } = useProjectContext()const { ui, meta } = useStore()+ const { project } = useProjectContext()const _localState = useLocalObservable(() => new CreateFunctionStore())- _localState.meta = meta as anyconst [isClosingPanel, setIsClosingPanel] = useState<boolean>(false)@@ -327,8 +293,8 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {const body = _localState.formState.requestBodyconst response: SupaResponse<Function> = body.id- ? await (_localState!.meta as any).functions.update(body.id, body)- : await (_localState!.meta as any).functions.create(body)+ ? await (meta as any).functions.update(body.id, body)+ : await (meta as any).functions.create(body)if (!isResponseOk(response)) {ui.setNotification({@@ -757,6 +723,13 @@ const InputDefinition = observer(({}) => {const SelectSchema = observer(({}) => {const _localState = useContext(CreateFunctionContext)+ const { project } = useProjectContext()+ const { data } = useSchemasQuery({+ projectRef: project?.ref,+ connectionString: project?.connectionString,+ })+ const schemas = data?.filter((schema) => !EXCLUDED_SCHEMAS.includes(schema.name)) ?? []+return (<Listboxid="schema"@@ -768,7 +741,7 @@ const SelectSchema = observer(({}) => {descriptionText="Tables made in the table editor will be in 'public'"onChange={(value) => _localState!.onFormChange({ key: 'schema', value })}>- {_localState!.schemas.map((x) => (+ {schemas.map((x) => (<Listbox.Option key={x.name} label={x.name} value={x.name}>{x.name}</Listbox.Option>diff --git a/studio/components/interfaces/Database/Functions/Functions.utils.ts b/studio/components/interfaces/Database/Functions/Functions.utils.tsnew file mode 100644index 00000000000..5c09aa3d99c--- /dev/null+++ b/studio/components/interfaces/Database/Functions/Functions.utils.ts@@ -0,0 +1,37 @@+import { Dictionary } from 'components/grid'+import { isEmpty } from 'lodash'++/**+ * convert argument_types = "a integer, b integer"+ * to args = {value: [{name:'a', type:'integer'}, {name:'b', type:'integer'}]}+ */+export function convertArgumentTypes(value: string) {+ const items = value?.split(',')+ if (isEmpty(value) || !items || items?.length == 0) return { value: [] }+ const temp = items.map((x) => {+ const str = x.trim()+ const space = str.indexOf(' ')+ const name = str.slice(0, space !== 1 ? space : 0)+ const type = str.slice(space + 1)+ return { name, type }+ })+ return { value: temp }+}++/**+ * convert config_params = {search_path: "auth, public"}+ * to {value: [{name: 'search_path', value: 'auth, public'}]}+ */+export function convertConfigParams(value: Dictionary<any>) {+ const temp = []+ if (value) {+ for (var key in value) {+ temp.push({ name: key, value: value[key] })+ }+ }+ return { value: temp }+}++export function hasWhitespace(value: string) {+ return /\s/.test(value)+}diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsxindex b023527e7a0..0935158576f 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx@@ -9,7 +9,16 @@ import Table from 'components/to-be-cleaned/Table'import { useDatabaseHooks } from 'data/database-triggers/database-triggers-query'import { useCheckPermissions } from 'hooks'import { BASE_PATH } from 'lib/constants'-import { Badge, Button, Dropdown, IconEdit3, IconMoreVertical, IconTrash } from 'ui'+import {+ Badge,+ Button,+ Dropdown,+ IconEdit3,+ IconMoreVertical,+ IconStopCircle,+ IconTrash,+ IconXCircle,+} from 'ui'export interface HookListProps {schema: string@@ -82,11 +91,21 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:side="left"overlay={<>- <Dropdown.Item icon={<IconEdit3 size="tiny" />} onClick={() => editHook(x)}>+ <Dropdown.Item+ icon={<IconEdit3 size="tiny" strokeWidth={2} />}+ onClick={() => editHook(x)}+ >Edit hook</Dropdown.Item><Dropdown.Item- icon={<IconTrash stroke="red" size="tiny" />}+ icon={<IconXCircle size="tiny" strokeWidth={2} />}+ onClick={() => editHook(x)}+ >+ Disable hook+ </Dropdown.Item>+ <Dropdown.Separator />+ <Dropdown.Item+ icon={<IconTrash stroke="red" size="tiny" strokeWidth={2} />}onClick={() => deleteHook(x)}>Delete hookdiff --git a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsxindex c2701e5e5b2..4fb1bd23fa6 100644--- a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx+++ b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx@@ -9,6 +9,7 @@ import ReactFlow, {BackgroundVariant,Edge,Handle,+ MiniMap,Node,NodeProps,Position,@@ -303,6 +304,8 @@ const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {const { isDarkMode } = useTheme()const backgroundPatternColor = isDarkMode ? '#2e2e2e' : '#e6e8eb'const edgeStrokeColor = isDarkMode ? '#ededed' : '#111318'+ const miniMapNodeColor = '#111318'+ const miniMapMaskColor = isDarkMode ? 'rgb(17, 19, 24, .8)' : 'rgb(237, 237, 237, .8)'const reactFlowInstance = useReactFlow()const nodeTypes = useMemo(@@ -336,10 +339,18 @@ const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {}}nodeTypes={nodeTypes}fitView- maxZoom={1.5}+ minZoom={0.8}+ maxZoom={1.8}proOptions={{ hideAttribution: true }}><Background gap={16} color={backgroundPatternColor} variant={BackgroundVariant.Lines} />+ <MiniMap+ pannable+ zoomable+ nodeColor={miniMapNodeColor}+ maskColor={miniMapMaskColor}+ className="border border-scale-600 rounded-md shadow-sm"+ /></ReactFlow></div></>diff --git a/studio/components/interfaces/Database/Tables/TableList.tsx b/studio/components/interfaces/Database/Tables/TableList.tsxindex 1e190ba7eb8..a6a015a0be4 100644--- a/studio/components/interfaces/Database/Tables/TableList.tsx+++ b/studio/components/interfaces/Database/Tables/TableList.tsx@@ -7,7 +7,7 @@ import { useState } from 'react'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import NoSearchResults from 'components/to-be-cleaned/NoSearchResults'import Table from 'components/to-be-cleaned/Table'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'+import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useSchemasQuery } from 'data/database/schemas-query'import { useTablesQuery } from 'data/tables/tables-query'import { useCheckPermissions, useStore } from 'hooks'@@ -47,7 +47,11 @@ const TableList = ({const [filterString, setFilterString] = useState<string>('')const canUpdateTables = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'tables')- const { data: schemas } = useSchemasQuery({+ const {+ data: schemas,+ isLoading: isLoadingSchemas,+ isSuccess: isSuccessSchemas,+ } = useSchemasQuery({projectRef: project?.ref,connectionString: project?.connectionString,})@@ -93,44 +97,52 @@ const TableList = ({<div className="flex items-center justify-between"><div className="flex items-center space-x-4"><div className="w-[260px]">- <Listbox- size="small"- value={snap.selectedSchemaName}- onChange={snap.setSelectedSchemaName}- icon={isLocked && <IconLock size={14} strokeWidth={2} />}- >- <Listbox.Option disabled key="normal-schemas" value="normal-schemas" label="Schemas">- <p className="text-sm">Schemas</p>- </Listbox.Option>- {openSchemas.map((schema) => (+ {isLoadingSchemas && <ShimmeringLoader className="!py-4" />}+ {isSuccessSchemas && (+ <Listbox+ size="small"+ value={snap.selectedSchemaName}+ onChange={snap.setSelectedSchemaName}+ icon={isLocked && <IconLock size={14} strokeWidth={2} />}+ ><Listbox.Option- key={schema.id}- value={schema.name}- label={schema.name}- addOnBefore={() => <span className="text-scale-900">schema</span>}+ disabled+ key="normal-schemas"+ value="normal-schemas"+ label="Schemas">- <span className="text-scale-1200 text-sm">{schema.name}</span>+ <p className="text-sm">Schemas</p></Listbox.Option>- ))}- <Listbox.Option- disabled- key="protected-schemas"- value="protected-schemas"- label="Protected schemas"- >- <p className="text-sm">Protected schemas</p>- </Listbox.Option>- {protectedSchemas.map((schema) => (+ {openSchemas.map((schema) => (+ <Listbox.Option+ key={schema.id}+ value={schema.name}+ label={schema.name}+ addOnBefore={() => <span className="text-scale-900">schema</span>}+ >+ <span className="text-scale-1200 text-sm">{schema.name}</span>+ </Listbox.Option>+ ))}<Listbox.Option- key={schema.id}- value={schema.name}- label={schema.name}- addOnBefore={() => <span className="text-scale-900">schema</span>}+ disabled+ key="protected-schemas"+ value="protected-schemas"+ label="Protected schemas">- <span className="text-scale-1200 text-sm">{schema.name}</span>+ <p className="text-sm">Protected schemas</p></Listbox.Option>- ))}- </Listbox>+ {protectedSchemas.map((schema) => (+ <Listbox.Option+ key={schema.id}+ value={schema.name}+ label={schema.name}+ addOnBefore={() => <span className="text-scale-900">schema</span>}+ >+ <span className="text-scale-1200 text-sm">{schema.name}</span>+ </Listbox.Option>+ ))}+ </Listbox>+ )}</div><div><Inputdiff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsxindex 91eebf02de4..ab6475a5c3f 100644--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx@@ -25,6 +25,7 @@ import {SidePanel,} from 'ui'import ChooseFunctionForm from './ChooseFunctionForm'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'class CreateTriggerFormState {id: number | undefined@@ -112,7 +113,7 @@ interface ICreateTriggerStore {setChooseFunctionFormVisible: (value: boolean) => voidsetDefaultSelectedTable: () => voidsetLoading: (value: boolean) => void- setTables: (value: Dictionary<any>[]) => void+ setTables: (value: any[]) => voidsetTriggerFunctions: (value: Dictionary<any>[]) => voidvalidateForm: () => boolean}@@ -168,8 +169,10 @@ class CreateTriggerStore implements ICreateTriggerStore {this.isDirty = value}- setTables = (value: Dictionary<any>[]) => {- this.tables = value as any+ setTables = (value: any[]) => {+ this.tables = value+ .sort((a, b) => a.schema.localeCompare(b.schema))+ .filter((a) => !EXCLUDED_SCHEMAS.includes(a.schema)) as anythis.setDefaultSelectedTable()}@@ -261,7 +264,6 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) =>const { ui, meta } = useStore()const [isClosingPanel, setIsClosingPanel] = useState(false)const _localState = useLocalObservable(() => new CreateTriggerStore())- _localState.meta = meta as anyuseTablesQuery({@@ -279,13 +281,13 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) =>useEffect(() => {const fetchFunctions = async () => {- await (_localState.meta as any).functions.load()- const triggerFuncs = (_localState!.meta as any)!.functions.listTriggerFunctions()+ await meta.functions.load()+ const triggerFuncs = (meta as any)!.functions.listTriggerFunctions()_localState.setTriggerFunctions(triggerFuncs)}- fetchFunctions()- }, [])+ if (ui.selectedProjectRef) fetchFunctions()+ }, [ui.selectedProjectRef])useEffect(() => {_localState.setisDirty(false)@@ -304,8 +306,8 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) =>const body = _localState.formState.requestBodyconst response: any = _localState.isEditing- ? await (_localState.meta as any).triggers.update(body.id, body)- : await (_localState.meta as any).triggers.create(body)+ ? await (meta as any).triggers.update(body.id, body)+ : await (meta as any).triggers.create(body)if (response.error) {ui.setNotification({@@ -593,8 +595,8 @@ const ListboxTable = observer(({}) => {)}><div className="flex flex-row items-center space-x-1">- <p>{x.name}</p><p className="text-sm text-scale-1000">{x.schema}</p>+ <p className="text">{x.name}</p></div></Listbox.Option>)diff --git a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsxindex fd04b25dd1a..b27c0c78a8d 100644--- a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx@@ -34,8 +34,8 @@ const NewProjectPanel = () => {Get started by building out your database</h3><p className="text-base text-scale-1100">- Start building your app by creating tables and inserting data. Our table editor- makes Postgres as easy to use as a spreadsheet, but there's also our SQL editor if+ Start building your app by creating tables and inserting data. Our Table Editor+ makes Postgres as easy to use as a spreadsheet, but there's also our SQL Editor ifyou need something more.</p></div>@@ -54,7 +54,7 @@ const NewProjectPanel = () => {/>}>- Table editor+ Table Editor</Button></a></Link>diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsxindex c48da2803ce..75d3d195e1e 100644--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx@@ -10,6 +10,7 @@ import { rlsAcknowledgedKey } from 'components/grid/constants'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import ConfirmationModal from 'components/ui/ConfirmationModal'import { useCheckPermissions, useStore } from 'hooks'+import { MousePointer2 } from 'lucide-react'export interface GridHeaderActionsProps {table: PostgresTable@@ -165,15 +166,13 @@ const GridHeaderActions = ({</a></Link>)}-<Buttontype="default"icon={- isRealtimeEnabled ? (- <IconZap className="text-brand" strokeWidth={1.5} />- ) : (- <IconZapOff />- )+ <MousePointer2+ size={14}+ className={isRealtimeEnabled ? 'text-brand' : 'text-lighter'}+ />}onClick={() => setShowEnableRealtime(true)}>@@ -198,7 +197,8 @@ const GridHeaderActions = ({><Modal.Content className="py-4 space-y-2"><p className="text-sm">- Once realtime has been {isRealtimeEnabled ? 'disabled' : 'enabled'}, the table will {isRealtimeEnabled ? 'no longer ' : ''}broadcast any changes to authorized subscribers.+ Once realtime has been {isRealtimeEnabled ? 'disabled' : 'enabled'}, the table will{' '}+ {isRealtimeEnabled ? 'no longer ' : ''}broadcast any changes to authorized subscribers.</p>{!isRealtimeEnabled && (<p className="text-sm">diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsxindex ba3e10903d2..38bf50df84b 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx@@ -16,7 +16,7 @@ interface JsonEditProps {applyButtonLabel?: stringreadOnly?: booleanclosePanel: () => void- onSaveJSON: (value: string | number) => void+ onSaveJSON: (value: string | number | null) => void}const JsonEdit = ({diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsxindex 669c8a0a699..e561ef83f9f 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx@@ -196,7 +196,7 @@ const RowEditor = ({column={selectedValueForJsonEdit?.column ?? ''}jsonString={selectedValueForJsonEdit?.jsonString ?? ''}closePanel={() => setSelectedValueForJsonEdit(undefined)}- onSaveJSON={(value: string | number) => {+ onSaveJSON={(value) => {onUpdateField({ [selectedValueForJsonEdit?.column ?? '']: value })setSelectedValueForJsonEdit(undefined)}}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsxnew file mode 100644index 00000000000..9eeb00728bc--- /dev/null+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SchemaEditor.tsx@@ -0,0 +1,87 @@+import { useEffect, useState } from 'react'+import { Input, SidePanel } from 'ui'+import toast from 'react-hot-toast'++import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'+import { useSchemaCreateMutation } from 'data/database/schema-create-mutation'+import ActionBar from './ActionBar'++interface SchemaEditorProps {+ visible: boolean+ closePanel: () => void+ saveChanges: (resolve: any) => void+}++const SchemaEditor = ({ visible, closePanel, saveChanges }: SchemaEditorProps) => {+ const { project } = useProjectContext()++ const [errors, setErrors] = useState<{ name?: string }>({ name: undefined })+ const [name, setName] = useState('')++ const { mutate: createSchema } = useSchemaCreateMutation()++ useEffect(() => {+ if (visible) {+ setName('')+ setErrors({ name: undefined })+ }+ }, [visible])++ const onSaveChanges = (resolve: any) => {+ const errors: any = {}+ if (name.length === 0) errors.name = 'Please provide a name for your schema'+ if (Object.keys(errors).length > 0) {+ resolve()+ return setErrors(errors)+ }++ if (project === undefined) return console.error('Project is required')+ createSchema(+ { projectRef: project.ref, connectionString: project.connectionString, name },+ {+ onSuccess: () => {+ resolve()+ closePanel()+ toast.success(`Successfully created schema "${name}"`)+ },+ }+ )+ }++ return (+ <SidePanel+ size="large"+ key="SchemaEditor"+ visible={visible}+ header={'Create a new schema'}+ className="transition-all duration-100 ease-in"+ onCancel={closePanel}+ onConfirm={() => (resolve: () => void) => onSaveChanges(resolve)}+ customFooter={+ <ActionBar+ backButtonLabel="Cancel"+ applyButtonLabel="Save"+ closePanel={closePanel}+ applyFunction={(resolve: () => void) => onSaveChanges(resolve)}+ />+ }+ >+ <>+ <SidePanel.Content>+ <div className="space-y-10 py-6">+ <Input+ label="Name"+ layout="horizontal"+ type="text"+ error={errors?.name}+ value={name}+ onChange={(event: any) => setName(event.target.value)}+ />+ </div>+ </SidePanel.Content>+ </>+ </SidePanel>+ )+}++export default SchemaEditordiff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxindex 6f8dda6da38..0118f6135ef 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx@@ -2,6 +2,7 @@ import type { PostgresColumn, PostgresTable } from '@supabase/postgres-meta'import { QueryKey, useQueryClient } from '@tanstack/react-query'import { isEmpty, isUndefined, noop } from 'lodash'import { useState } from 'react'+import { toast } from 'react-hot-toast'import { Modal } from 'ui'import { Dictionary } from 'components/grid'@@ -24,6 +25,7 @@ import {UpdateColumnPayload,} from './SidePanelEditor.types'import { ImportContent } from './TableEditor/TableEditor.types'+import SchemaEditor from './SchemaEditor'export interface SidePanelEditorProps {editable?: boolean@@ -122,13 +124,13 @@ const SidePanelEditor = ({payload: any,isNewRecord: boolean,configuration: { identifiers: any; rowIdx: number },- onComplete: Function+ onComplete: (err?: any) => void) => {if (!project || selectedTable === undefined) {return console.error('no project or table selected')}- let saveRowError = false+ let saveRowError: Error | undefinedif (isNewRecord) {try {const result = await createTableRows({@@ -140,7 +142,7 @@ const SidePanelEditor = ({})onRowCreated(result[0])} catch (error: any) {- saveRowError = true+ saveRowError = error}} else {const hasChanges = !isEmpty(payload)@@ -156,11 +158,11 @@ const SidePanelEditor = ({enumArrayColumns,})onRowUpdated(result[0], configuration.rowIdx)- } catch (error) {- saveRowError = true+ } catch (error: any) {+ saveRowError = error}} else {- saveRowError = true+ saveRowError = new Error('No primary key')ui.setNotification({category: 'error',message:@@ -170,27 +172,31 @@ const SidePanelEditor = ({}}- onComplete()+ onComplete(saveRowError)if (!saveRowError) {setIsEdited(false)snap.closeSidePanel()}}- const onSaveJSON = async (value: string | number) => {+ const onSaveJSON = async (value: string | number | null) => {if (selectedTable === undefined || !(snap.sidePanel?.type === 'json')) returnconst selectedValueForJsonEdit = snap.sidePanel.jsonValuetry {const { row, column } = selectedValueForJsonEdit- const payload = { [column]: JSON.parse(value as any) }+ const payload = { [column]: value === null ? null : JSON.parse(value as any) }const identifiers = {} as Dictionary<any>selectedTable.primary_keys.forEach((column) => (identifiers[column.name] = row![column.name]))const isNewRecord = falseconst configuration = { identifiers, rowIdx: row.idx }- saveRow(payload, isNewRecord, configuration, () => {})+ saveRow(payload, isNewRecord, configuration, (error) => {+ if (error) {+ toast.error(error?.message ?? 'Something went wrong while trying to save the JSON value')+ }+ })} catch (error: any) {}}@@ -554,6 +560,11 @@ const SidePanelEditor = ({saveChanges={saveTable}updateEditorDirty={() => setIsEdited(true)}/>+ <SchemaEditor+ visible={snap.sidePanel?.type === 'schema'}+ closePanel={onClosePanel}+ saveChanges={() => {}}+ /><JsonEditvisible={snap.sidePanel?.type === 'json'}column={(snap.sidePanel?.type === 'json' && snap.sidePanel.jsonValue.column) || ''}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsxindex 79123e21ee0..ea654cb6509 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx@@ -1,7 +1,8 @@+import Link from 'next/link'import { PostgresTable } from '@supabase/postgres-meta'import { debounce, includes, noop } from 'lodash'import { useCallback, useEffect, useState } from 'react'-import { SidePanel, Tabs } from 'ui'+import { Button, IconExternalLink, SidePanel, Tabs } from 'ui'import { useStore } from 'hooks'import ActionBar from '../ActionBar'@@ -17,6 +18,9 @@ import {parseSpreadsheetText,} from './SpreadsheetImport.utils'import SpreadsheetImportPreview from './SpreadsheetImportPreview'+import toast from 'react-hot-toast'++const MAX_CSV_SIZE = 1024 * 1024 * 100 // 100 MBinterface SpreadsheetImportProps {debounceDuration?: number@@ -74,6 +78,25 @@ const SpreadsheetImport = ({setParseProgress(0)event.persist()const [file] = event.target.files || event.dataTransfer.files++ if (file.size > MAX_CSV_SIZE) {+ event.target.value = ''+ return toast(+ <div className="space-y-1">+ <p>The dashboard currently only supports importing of CSVs below 100MB.</p>+ <p>For bulk data loading, we recommend doing so directly through the database.</p>+ <Link passHref href="https://supabase.com/docs/guides/database/tables#bulk-data-loading">+ <Button asChild type="default" icon={<IconExternalLink />} className="!mt-2">+ <a target="_blank" rel="noreferrer">+ Learn more+ </a>+ </Button>+ </Link>+ </div>,+ { duration: Infinity }+ )+ }+if (!file || !includes(UPLOAD_FILE_TYPES, file?.type) || !acceptedFileExtension(file)) {ui.setNotification({category: 'info',diff --git a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx b/studio/components/interfaces/TableGridEditor/TableDefinition.tsxindex 3ea9f843bfb..13735eaf6c8 100644--- a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx+++ b/studio/components/interfaces/TableGridEditor/TableDefinition.tsx@@ -1,5 +1,5 @@import Editor from '@monaco-editor/react'-import { useTheme } from 'common'+import { useParams, useTheme } from 'common'import { observer } from 'mobx-react-lite'import { useMemo, useRef } from 'react'import { format } from 'sql-formatter'@@ -11,12 +11,15 @@ import { useViewDefinitionQuery } from 'data/database/view-definition-query'import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'import useEntityType from 'hooks/misc/useEntityType'import { timeout } from 'lib/helpers'+import Link from 'next/link'+import { Button } from 'ui'export interface TableDefinitionProps {id?: number}const TableDefinition = ({ id }: TableDefinitionProps) => {+ const { ref } = useParams()const editorRef = useRef(null)const monacoRef = useRef(null)const { isDarkMode } = useTheme()@@ -98,7 +101,15 @@ const TableDefinition = ({ id }: TableDefinitionProps) => {}return (- <div className="flex-grow overflow-y-auto border-t border-scale-400">+ <div className="flex-grow overflow-y-auto border-t border-scale-400 relative">+ <Link+ passHref+ href={`/project/${ref}/sql/new?content=${encodeURIComponent(formattedDefinition ?? '')}`}+ >+ <Button asChild type="default" className="absolute top-2 right-5 z-10">+ <a>Open in SQL Editor</a>+ </Button>+ </Link><EditorclassName="monaco-editor"theme={isDarkMode ? 'vs-dark' : 'vs'}diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsxindex 2af073982ed..f85860b8bfa 100644--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx@@ -1,12 +1,28 @@+import saveAs from 'file-saver'+import Papa from 'papaparse'import clsx from 'clsx'import SVG from 'react-inlinesvg'import * as Tooltip from '@radix-ui/react-tooltip'import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'import { Entity } from 'data/entity-types/entity-type-query'import Link from 'next/link'-import { Dropdown, IconEdit, IconCopy, IconLock, IconTrash, IconChevronDown } from 'ui'+import {+ Dropdown,+ IconEdit,+ IconCopy,+ IconLock,+ IconTrash,+ IconChevronDown,+ IconDownload,+} from 'ui'import { BASE_PATH } from 'lib/constants'import { useTableEditorStateSnapshot } from 'state/table-editor'+import { fetchAllTableRows } from 'data/table-rows/table-rows-query'+import { useParams } from 'common'+import { useProjectContext } from '../ProjectLayout/ProjectContext'+import { getTable } from 'data/tables/table-query'+import { parseSupaTable } from 'components/grid'+import { useStore } from 'hooks'export interface EntityListItemProps {id: number@@ -16,7 +32,10 @@ export interface EntityListItemProps {}const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListItemProps) => {+ const { ui } = useStore()+ const { project } = useProjectContext()const snap = useTableEditorStateSnapshot()+const isActive = Number(id) === entity.idconst formatTooltipText = (entityType: string) => {return Object.entries(ENTITY_TYPE)@@ -26,6 +45,67 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt?.join(' ')}+ const exportTableAsCSV = async () => {+ if (!project?.connectionString) return console.error('Connection string is required')+ const toastId = ui.setNotification({+ category: 'loading',+ message: `Exporting ${entity.name} as CSV...`,+ })++ try {+ const table = await getTable({+ id: entity.id,+ projectRef,+ connectionString: project.connectionString,+ })+ const supaTable =+ table &&+ parseSupaTable(+ {+ table: table,+ columns: table.columns ?? [],+ primaryKeys: table.primary_keys,+ relationships: table.relationships,+ },+ []+ )++ const rows = await fetchAllTableRows({+ projectRef,+ connectionString: project.connectionString,+ table: supaTable,+ })+ const formattedRows = rows.map((row) => {+ const formattedRow = row+ Object.keys(row).map((column) => {+ if (typeof row[column] === 'object' && row[column] !== null)+ formattedRow[column] = JSON.stringify(formattedRow[column])+ })+ return formattedRow+ })++ if (formattedRows.length > 0) {+ const csv = Papa.unparse(formattedRows, {+ columns: supaTable.columns.map((column) => column.name),+ })+ const csvData = new Blob([csv], { type: 'text/csv;charset=utf-8;' })+ saveAs(csvData, `${entity!.name}_rows.csv`)+ }++ ui.setNotification({+ id: toastId,+ category: 'success',+ message: `Successfully exported ${entity.name} as CSV`,+ })+ } catch (error: any) {+ ui.setNotification({+ id: toastId,+ category: 'error',+ message: `Failed to export table: ${error.message}`,+ })+ }+ }+return (<divclassName={clsx(@@ -151,6 +231,16 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt</Dropdown.Item></a></Link>,+ <Dropdown.Item+ key="download-table-csv"+ icon={<IconDownload size="tiny" />}+ onClick={(e) => {+ e.stopPropagation()+ exportTableAsCSV()+ }}+ >+ Export as CSV+ </Dropdown.Item>,<Dropdown.Separator key="separator" />,<Dropdown.Itemkey="delete-table"diff --git a/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx b/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsxindex bccfbc672bb..92c8f7e63e8 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorLayout.tsx@@ -39,7 +39,7 @@ const TableEditorLayout = ({ children }: PropsWithChildren<{}>) => {}return (- <ProjectLayoutWithAuth product="Table editor" productMenu={<TableEditorMenu />}>+ <ProjectLayoutWithAuth product="Table Editor" productMenu={<TableEditorMenu />}>{children}</ProjectLayoutWithAuth>)diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex ffe27f2fa52..c45ddb71087 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -1,30 +1,45 @@import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'+import { useParams } from 'common'import { partition } from 'lodash'import { useMemo, useState } from 'react'--import { useParams } from 'common/hooks'-import InfiniteList from 'components/ui/InfiniteList'-import { useSchemasQuery } from 'data/database/schemas-query'-import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query'-import { useCheckPermissions, useLocalStorage } from 'hooks'-import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'-import { useTableEditorStateSnapshot } from 'state/table-editor'import {Alert,+ AlertDescription_Shadcn_,+ AlertTitle_Shadcn_,+ Alert_Shadcn_,Button,+ CommandEmpty_Shadcn_,+ CommandGroup_Shadcn_,+ CommandInput_Shadcn_,+ CommandItem_Shadcn_,+ CommandList_Shadcn_,+ Command_Shadcn_,Dropdown,IconCheck,IconChevronsDown,+ IconCode,IconEdit,IconLoader,+ IconPlus,IconRefreshCw,IconSearch,IconX,Input,- Listbox,Menu,+ Modal,+ PopoverContent_Shadcn_,+ PopoverTrigger_Shadcn_,+ Popover_Shadcn_,+ ScrollArea,} from 'ui'++import InfiniteList from 'components/ui/InfiniteList'+import { useSchemasQuery } from 'data/database/schemas-query'+import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query'+import { useCheckPermissions, useLocalStorage } from 'hooks'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'+import { useTableEditorStateSnapshot } from 'state/table-editor'import { useProjectContext } from '../ProjectLayout/ProjectContext'import EntityListItem from './EntityListItem'@@ -32,6 +47,8 @@ const TableEditorMenu = () => {const { id } = useParams()const snap = useTableEditorStateSnapshot()+ const [open, setOpen] = useState(false)+ const [showModal, setShowModal] = useState(false)const [searchText, setSearchText] = useState<string>('')const [sort, setSort] = useLocalStorage<'alphabetical' | 'grouped-alphabetical'>('table-editor-sort',@@ -86,91 +103,123 @@ const TableEditorMenu = () => {await refetch()}- const [protectedSchemas, openSchemas] = partition(schemas, (schema) =>- EXCLUDED_SCHEMAS.includes(schema?.name ?? '')+ const [protectedSchemas, openSchemas] = partition(+ (schemas ?? []).sort((a, b) => a.name.localeCompare(b.name)),+ (schema) => EXCLUDED_SCHEMAS.includes(schema?.name ?? ''))const isLocked = protectedSchemas.some((s) => s.id === schema?.id)return (- <div- className="pt-6 flex flex-col flex-grow space-y-6 h-full"- style={{ maxHeight: 'calc(100vh - 48px)' }}- >- {/* Schema selection dropdown */}- <div className="px-3 mx-4">- {isSchemasLoading && (- <div className="flex h-[26px] items-center space-x-3 rounded border border-gray-500 px-3">- <IconLoader className="animate-spin" size={12} />- <span className="text-xs text-scale-900">Loading schemas...</span>- </div>- )}-- {isSchemasError && (- <Alert variant="warning" title="Failed to load schemas" className="!px-3 !py-3">- <p className="mb-2">Error: {schemasError.message}</p>- <Button type="default" size="tiny" onClick={() => refetchSchemas()}>- Reload schemas+ <>+ <div+ className="pt-5 flex flex-col flex-grow space-y-4 h-full"+ style={{ maxHeight: 'calc(100vh - 48px)' }}+ >+ {/* Schema selection dropdown */}+ <div className="mx-4">+ {isSchemasLoading && (+ <Button+ type="outline"+ className="w-full [&>span]:w-full"+ icon={<IconLoader className="animate-spin" size={12} />}+ >+ <div>+ <div className="w-full flex space-x-3 py-0.5">+ <p className="text-xs text-light">Loading schemas...</p>+ </div>+ </div></Button>- </Alert>- )}+ )}- {isSchemasSuccess && (- <Listbox- size="tiny"- value={snap.selectedSchemaName}- onChange={(name: string) => {- setSearchText('')- snap.setSelectedSchemaName(name)- }}- >- <Listbox.Option- disabled- key="normal-schemas"- value="normal-schemas"- label="Schemas"- className="!w-[200px]"- >- <p className="text-xs text-scale-1100">Schemas</p>- </Listbox.Option>- {openSchemas.map((schema) => (- <Listbox.Option- key={schema.id}- value={schema.name}- label={schema.name}- className="!w-[200px]"- addOnBefore={() => <span className="text-scale-900 text-xs">schema</span>}- >- <span className="text-scale-1200 text-xs">{schema.name}</span>- </Listbox.Option>- ))}- <Listbox.Option- disabled- key="protected-schemas"- value="protected-schemas"- label="Protected schemas"- className="!w-[200px]"- >- <p className="text-xs text-scale-1100">Protected schemas</p>- </Listbox.Option>- {protectedSchemas.map((schema) => (- <Listbox.Option- key={schema.id}- value={schema.name}- label={schema.name}- className="!w-[200px]"- addOnBefore={() => <span className="text-scale-900 text-xs">schema</span>}- >- <span className="text-scale-1200 text-xs">{schema.name}</span>- </Listbox.Option>- ))}- </Listbox>- )}- </div>+ {isSchemasError && (+ <Alert variant="warning" title="Failed to load schemas" className="!px-3 !py-3">+ <p className="mb-2">Error: {schemasError.message}</p>+ <Button type="default" size="tiny" onClick={() => refetchSchemas()}>+ Reload schemas+ </Button>+ </Alert>+ )}++ {isSchemasSuccess && (+ <Popover_Shadcn_ open={open} onOpenChange={setOpen} modal={false}>+ <PopoverTrigger_Shadcn_ asChild>+ <Button+ asChild+ type="outline"+ className="w-full [&>span]:w-full"+ iconRight={+ <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />+ }+ >+ <div>+ <div className="w-full flex space-x-3 py-0.5">+ <p className="text-xs text-light">schema</p>+ <p className="text-xs">{snap.selectedSchemaName}</p>+ </div>+ </div>+ </Button>+ </PopoverTrigger_Shadcn_>+ <PopoverContent_Shadcn_ className="p-0 w-64" side="bottom" align="start">+ <Command_Shadcn_>+ <CommandInput_Shadcn_ placeholder="Find schema..." />+ <CommandList_Shadcn_>+ <CommandEmpty_Shadcn_>No schemas found</CommandEmpty_Shadcn_>+ <CommandGroup_Shadcn_>+ <ScrollArea className={(schemas || []).length > 7 ? 'h-[210px]' : ''}>+ {schemas?.map((schema) => (+ <CommandItem_Shadcn_+ asChild+ key={schema.id}+ className="cursor-pointer flex items-center space-x-2 w-full"+ onSelect={() => {+ setSearchText('')+ snap.setSelectedSchemaName(schema.name)+ setOpen(false)+ }}+ onClick={() => {+ setSearchText('')+ snap.setSelectedSchemaName(schema.name)+ setOpen(false)+ }}+ >+ <div className="w-full flex items-center justify-between">+ <p>{schema.name}</p>+ {schema.name === snap.selectedSchemaName && (+ <IconCheck className="text-brand" strokeWidth={2} />+ )}+ </div>+ </CommandItem_Shadcn_>+ ))}+ </ScrollArea>+ </CommandGroup_Shadcn_>+ <CommandGroup_Shadcn_ className="border-t">+ <CommandItem_Shadcn_+ asChild+ className="cursor-pointer flex items-center space-x-2 w-full"+ onSelect={() => {+ snap.onAddSchema()+ setOpen(false)+ }}+ onClick={() => {+ snap.onAddSchema()+ setOpen(false)+ }}+ >+ <div className="flex items-center space-x-2">+ <IconPlus />+ <p>Create a new schema</p>+ </div>+ </CommandItem_Shadcn_>+ </CommandGroup_Shadcn_>+ </CommandList_Shadcn_>+ </Command_Shadcn_>+ </PopoverContent_Shadcn_>+ </Popover_Shadcn_>+ )}+ </div>- <div className="space-y-1 mx-4">- {!isLocked && (- <div className="px-3">- {/* Add new table button */}+ <div className="space-y-1 mx-4">+ {!isLocked ? (<Tooltip.Root delayDuration={0}><Tooltip.Trigger className="w-full"><Button@@ -208,157 +257,208 @@ const TableEditorMenu = () => {</Tooltip.Portal>)}</Tooltip.Root>- </div>- )}- {/* Table search input */}- <div className="mb-2 block px-3">- <Input- className="table-editor-search border-none"- icon={- isSearching ? (- <IconLoader className="animate-spin text-scale-900" size={12} strokeWidth={1.5} />- ) : (- <IconSearch className="text-scale-900" size={12} strokeWidth={1.5} />- )- }- placeholder="Search tables"- onChange={(e) => setSearchText(e.target.value.trim())}- value={searchText}- size="tiny"- actions={- searchText && (- <Button size="tiny" type="text" onClick={() => setSearchText('')}>- <IconX size={12} strokeWidth={2} />+ ) : (+ <Alert_Shadcn_>+ <AlertTitle_Shadcn_ className="text-xs tracking-normal">+ Viewing protected schema+ </AlertTitle_Shadcn_>+ <AlertDescription_Shadcn_ className="text-xs">+ <p className="mb-2">+ This schema is managed by Supabase and is read-only through the table editor+ </p>+ <Button type="default" size="tiny" onClick={() => setShowModal(true)}>+ Learn more</Button>- )- }- />- </div>- </div>+ </AlertDescription_Shadcn_>+ </Alert_Shadcn_>+ )}- {isLoading ? (- <div className="mx-7 flex items-center space-x-2">- <IconLoader className="animate-spin" size={14} strokeWidth={1.5} />- <p className="text-sm text-scale-1000">Loading entities...</p>- </div>- ) : searchText.length === 0 && (entityTypes?.length ?? 0) === 0 ? (- <div className="mx-7 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">- <p className="text-xs">No entities available</p>- <p className="text-xs text-scale-1100">This schema has no entities available yet</p>- </div>- ) : searchText.length > 0 && (entityTypes?.length ?? 0) === 0 ? (- <div className="mx-7 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">- <p className="text-xs">No results found</p>- <p className="text-xs text-scale-1100">There are no entities that match your search</p>+ {/* Table search input */}+ <div className="mb-2 block">+ <Input+ className="table-editor-search border-none"+ icon={+ isSearching ? (+ <IconLoader className="animate-spin text-scale-900" size={12} strokeWidth={1.5} />+ ) : (+ <IconSearch className="text-scale-900" size={12} strokeWidth={1.5} />+ )+ }+ placeholder="Search tables"+ onChange={(e) => setSearchText(e.target.value.trim())}+ value={searchText}+ size="tiny"+ actions={+ searchText && (+ <Button size="tiny" type="text" onClick={() => setSearchText('')}>+ <IconX size={12} strokeWidth={2} />+ </Button>+ )+ }+ />+ </div></div>- ) : (- <Menu- type="pills"- className="flex flex-auto px-4 space-y-6 pb-4"- ulClassName="flex flex-auto flex-col"- >- <Menu.Group- // @ts-ignore- title={- <>- <div className="flex w-full items-center justify-between">- <div className="flex items-center space-x-1">- <p>Tables</p>- {totalCount !== undefined && (- <p style={{ fontVariantNumeric: 'tabular-nums' }}>({totalCount})</p>- )}- </div>- <div className="flex gap-3 items-center">- <Dropdown- size="small"- side="bottom"- align="start"- style={{ zIndex: 1 }}- overlay={[- <Dropdown.Item- key="alphabetical"- icon={- sort === 'alphabetical' ? (- <IconCheck size="tiny" />- ) : (- <div className="w-[14px] h-[14px]" />- )- }- onClick={() => {- setSort('alphabetical')- }}- >- Alphabetical- </Dropdown.Item>,- <Dropdown.Item- key="grouped-alphabetical"- icon={- sort === 'grouped-alphabetical' ? (- <IconCheck size="tiny" />- ) : (- <div className="w-[14px] h-[14px]" />- )- }- onClick={() => {- setSort('grouped-alphabetical')- }}- >- Entity Type- </Dropdown.Item>,- ]}- >- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger asChild>- <div className="text-scale-900 transition-colors hover:text-scale-1200">- <IconChevronsDown size={18} strokeWidth={1} />- </div>- </Tooltip.Trigger>- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs">Sort By</span>+ {isLoading ? (+ <div className="mx-4 flex items-center space-x-2">+ <IconLoader className="animate-spin" size={14} strokeWidth={1.5} />+ <p className="text-sm text-scale-1000">Loading entities...</p>+ </div>+ ) : searchText.length === 0 && (entityTypes?.length ?? 0) === 0 ? (+ <div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">+ <p className="text-xs">No entities available</p>+ <p className="text-xs text-scale-1100">This schema has no entities available yet</p>+ </div>+ ) : searchText.length > 0 && (entityTypes?.length ?? 0) === 0 ? (+ <div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4">+ <p className="text-xs">No results found</p>+ <p className="text-xs text-scale-1100">There are no entities that match your search</p>+ </div>+ ) : (+ <Menu+ type="pills"+ className="flex flex-auto px-2 space-y-6 pb-4"+ ulClassName="flex flex-auto flex-col"+ >+ <Menu.Group+ // @ts-ignore+ title={+ <>+ <div className="flex w-full items-center justify-between">+ <div className="flex items-center space-x-1">+ <p>Tables</p>+ {totalCount !== undefined && (+ <p style={{ fontVariantNumeric: 'tabular-nums' }}>({totalCount})</p>+ )}+ </div>++ <div className="flex gap-3 items-center">+ <Dropdown+ size="small"+ side="bottom"+ align="start"+ style={{ zIndex: 1 }}+ overlay={[+ <Dropdown.Item+ key="alphabetical"+ icon={+ sort === 'alphabetical' ? (+ <IconCheck size="tiny" />+ ) : (+ <div className="w-[14px] h-[14px]" />+ )+ }+ onClick={() => {+ setSort('alphabetical')+ }}+ >+ Alphabetical+ </Dropdown.Item>,+ <Dropdown.Item+ key="grouped-alphabetical"+ icon={+ sort === 'grouped-alphabetical' ? (+ <IconCheck size="tiny" />+ ) : (+ <div className="w-[14px] h-[14px]" />+ )+ }+ onClick={() => {+ setSort('grouped-alphabetical')+ }}+ >+ Entity Type+ </Dropdown.Item>,+ ]}+ >+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger asChild>+ <div className="text-scale-900 transition-colors hover:text-scale-1200">+ <IconChevronsDown size={18} strokeWidth={1} /></div>- </Tooltip.Content>- </Tooltip.Portal>- </Tooltip.Root>- </Dropdown>+ </Tooltip.Trigger>+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs">Sort By</span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ </Tooltip.Root>+ </Dropdown>- <button- className="cursor-pointer text-scale-900 transition-colors hover:text-scale-1200"- onClick={refreshTables}- >- <IconRefreshCw className={isRefetching ? 'animate-spin' : ''} size={14} />- </button>+ <button+ className="cursor-pointer text-scale-900 transition-colors hover:text-scale-1200"+ onClick={refreshTables}+ >+ <IconRefreshCw className={isRefetching ? 'animate-spin' : ''} size={14} />+ </button>+ </div></div>- </div>- </>- }- />-- <div className="flex flex-1">- <InfiniteList- items={entityTypes}- ItemComponent={EntityListItem}- itemProps={{- projectRef: project?.ref,- id: Number(id),- }}- getItemSize={() => 28}- hasNextPage={hasNextPage}- isLoadingNextPage={isFetchingNextPage}- onLoadNextPage={() => fetchNextPage()}+ </>+ }/>++ <div className="flex flex-1">+ <InfiniteList+ items={entityTypes}+ ItemComponent={EntityListItem}+ itemProps={{+ projectRef: project?.ref,+ id: Number(id),+ }}+ getItemSize={() => 28}+ hasNextPage={hasNextPage}+ isLoadingNextPage={isFetchingNextPage}+ onLoadNextPage={() => fetchNextPage()}+ />+ </div>+ </Menu>+ )}+ </div>++ <Modal+ size="medium"+ visible={showModal}+ header="Schemas managed by Supabase"+ customFooter={+ <div className="flex items-center justify-end space-x-2">+ <Button type="default" onClick={() => setShowModal(false)}>+ Understood+ </Button>+ </div>+ }+ onCancel={() => setShowModal(false)}+ >+ <Modal.Content className="py-4 space-y-2">+ <p className="text-sm">+ The following schemas are managed by Supabase and are currently protected from write+ access through the Table Editor.+ </p>+ <div className="flex flex-wrap gap-1">+ {EXCLUDED_SCHEMAS.map((schema) => (+ <code key={schema} className="text-xs">+ {schema}+ </code>+ ))}</div>- </Menu>- )}- </div>+ <p className="text-sm !mt-4">+ These schemas are critical to the functionality of your Supabase project and hence we+ highly recommend not altering them.+ </p>+ <p className="text-sm">+ You can, however, still interact with those schemas through the SQL Editor although we+ advise you only do so if you know what you are doing.+ </p>+ </Modal.Content>+ </Modal>+ </>)}diff --git a/studio/contributing/contributing-checklists.md b/studio/contributing/contributing-checklists.mdindex 7c27953a43f..9e547cbe5e9 100644--- a/studio/contributing/contributing-checklists.md+++ b/studio/contributing/contributing-checklists.md@@ -12,7 +12,7 @@ You don't need to go through all of these for every PR you contribute. These che### Table Editor-- [ ] Go to **Table editor**+- [ ] Go to **Table Editor**- [ ] Create a **new table**- [ ] Add different fields and types: at least one nullable, one with default generated value (like `now()`), at least one date field- [ ] Insert a few rows into the tablediff --git a/studio/data/auth/keys.ts b/studio/data/auth/keys.tsindex 9dbece0ae3c..69772361641 100644--- a/studio/data/auth/keys.ts+++ b/studio/data/auth/keys.ts@@ -1,4 +1,12 @@export const authKeys = {+ users: (+ projectRef: string | undefined,+ params?: {+ page: number | undefined+ keywords: string | undefined+ verified: string | undefined+ }+ ) => ['auth', projectRef, 'users', ...(params ? [params] : [])] as const,authConfig: (projectRef: string | undefined) => ['auth', projectRef, 'config'] as const,accessToken: () => ['access-token'] as const,}diff --git a/studio/data/auth/user-create-mutation.ts b/studio/data/auth/user-create-mutation.tsindex c053ede01f2..65652ba7de8 100644--- a/studio/data/auth/user-create-mutation.ts+++ b/studio/data/auth/user-create-mutation.ts@@ -1,10 +1,12 @@-import { useMutation, UseMutationOptions } from '@tanstack/react-query'+import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'import toast from 'react-hot-toast'import { post } from 'lib/common/fetch'import { ResponseError } from 'types'+import { authKeys } from './keys'export type UserCreateVariables = {+ projectRef?: stringprotocol: stringendpoint: stringserviceApiKey: string@@ -58,15 +60,22 @@ export async function createUser({ protocol, endpoint, serviceApiKey, user }: Ustype UserCreateData = Awaited<ReturnType<typeof createUser>>export const useUserCreateMutation = ({+ onSuccess,onError,...options}: Omit<UseMutationOptions<UserCreateData, ResponseError, UserCreateVariables>,'mutationFn'> = {}) => {+ const queryClient = useQueryClient()return useMutation<UserCreateData, ResponseError, UserCreateVariables>((vars) => createUser(vars),{+ async onSuccess(data, variables, context) {+ const { projectRef } = variables+ if (projectRef) await queryClient.invalidateQueries(authKeys.users(projectRef))+ await onSuccess?.(data, variables, context)+ },async onError(data, variables, context) {if (onError === undefined) {toast.error(`Failed to create user: ${data.message}`)diff --git a/studio/data/auth/user-delete-mfa-factors-mutation.ts b/studio/data/auth/user-delete-mfa-factors-mutation.tsindex 29c16bb969c..96a05ee37d2 100644--- a/studio/data/auth/user-delete-mfa-factors-mutation.ts+++ b/studio/data/auth/user-delete-mfa-factors-mutation.ts@@ -1,7 +1,6 @@import { useMutation, UseMutationOptions } from '@tanstack/react-query'import toast from 'react-hot-toast'-import { User } from 'components/interfaces/Auth/Users/Users.types'import { delete_ } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { ResponseError } from 'types'diff --git a/studio/data/auth/user-delete-mutation.ts b/studio/data/auth/user-delete-mutation.tsindex afae9bc01bb..c5007295417 100644--- a/studio/data/auth/user-delete-mutation.ts+++ b/studio/data/auth/user-delete-mutation.ts@@ -1,10 +1,11 @@-import { useMutation, UseMutationOptions } from '@tanstack/react-query'+import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'import toast from 'react-hot-toast'-import { User } from 'components/interfaces/Auth/Users/Users.types'import { delete_ } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { ResponseError } from 'types'+import { User } from './users-query'+import { authKeys } from './keys'export type UserDeleteVariables = {projectRef: string@@ -27,11 +28,13 @@ export const useUserDeleteMutation = ({UseMutationOptions<UserDeleteData, ResponseError, UserDeleteVariables>,'mutationFn'> = {}) => {+ const queryClient = useQueryClient()return useMutation<UserDeleteData, ResponseError, UserDeleteVariables>((vars) => deleteUser(vars),{async onSuccess(data, variables, context) {- // [Joshen] If we need to invalidate any queries+ const { projectRef } = variables+ await queryClient.invalidateQueries(authKeys.users(projectRef))await onSuccess?.(data, variables, context)},async onError(data, variables, context) {diff --git a/studio/data/auth/user-invite-mutation.ts b/studio/data/auth/user-invite-mutation.tsindex 8f30c6ea427..ed92c179c15 100644--- a/studio/data/auth/user-invite-mutation.ts+++ b/studio/data/auth/user-invite-mutation.ts@@ -1,9 +1,10 @@-import { useMutation, UseMutationOptions } from '@tanstack/react-query'+import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'import toast from 'react-hot-toast'import { post } from 'lib/common/fetch'import { ResponseError } from 'types'import { API_URL } from 'lib/constants'+import { authKeys } from './keys'export type UserInviteVariables = {projectRef: string@@ -26,11 +27,13 @@ export const useUserInviteMutation = ({UseMutationOptions<UserInviteData, ResponseError, UserInviteVariables>,'mutationFn'> = {}) => {+ const queryClient = useQueryClient()return useMutation<UserInviteData, ResponseError, UserInviteVariables>((vars) => inviteUser(vars),{async onSuccess(data, variables, context) {- // [Joshen] If we need to invalidate any queries+ const { projectRef } = variables+ await queryClient.invalidateQueries(authKeys.users(projectRef))await onSuccess?.(data, variables, context)},async onError(data, variables, context) {diff --git a/studio/data/auth/user-reset-password-mutation.ts b/studio/data/auth/user-reset-password-mutation.tsindex 2c49e53e570..14220772625 100644--- a/studio/data/auth/user-reset-password-mutation.ts+++ b/studio/data/auth/user-reset-password-mutation.ts@@ -1,10 +1,10 @@import { useMutation, UseMutationOptions } from '@tanstack/react-query'import toast from 'react-hot-toast'-import { User } from 'components/interfaces/Auth/Users/Users.types'import { post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { ResponseError } from 'types'+import { User } from './users-query'export type UserResetPasswordVariables = {projectRef: stringdiff --git a/studio/data/auth/user-send-magic-link-mutation.ts b/studio/data/auth/user-send-magic-link-mutation.tsindex 936f0f49230..ad339580490 100644--- a/studio/data/auth/user-send-magic-link-mutation.ts+++ b/studio/data/auth/user-send-magic-link-mutation.ts@@ -1,10 +1,10 @@import { useMutation, UseMutationOptions } from '@tanstack/react-query'import toast from 'react-hot-toast'-import { User } from 'components/interfaces/Auth/Users/Users.types'import { post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { ResponseError } from 'types'+import { User } from './users-query'export type UserSendMagicLinkVariables = {projectRef: stringdiff --git a/studio/data/auth/user-send-otp-mutation.ts b/studio/data/auth/user-send-otp-mutation.tsindex 5265e9f40cd..35df55e88c2 100644--- a/studio/data/auth/user-send-otp-mutation.ts+++ b/studio/data/auth/user-send-otp-mutation.ts@@ -1,10 +1,10 @@import { useMutation, UseMutationOptions } from '@tanstack/react-query'import toast from 'react-hot-toast'-import { User } from 'components/interfaces/Auth/Users/Users.types'import { post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { ResponseError } from 'types'+import { User } from './users-query'export type UserSendOTPVariables = {projectRef: stringdiff --git a/studio/data/auth/users-query.ts b/studio/data/auth/users-query.tsnew file mode 100644index 00000000000..3ec8923de2a--- /dev/null+++ b/studio/data/auth/users-query.ts@@ -0,0 +1,55 @@+import { useQuery, UseQueryOptions } from '@tanstack/react-query'+import { get } from 'data/fetchers'+import { ResponseError } from 'types'+import { authKeys } from './keys'+import { components } from 'data/api'++export type UsersVariables = {+ projectRef?: string+ page?: number+ keywords?: string+ verified?: 'verified' | 'unverified'+}++export const USERS_PAGE_LIMIT = 10+export type User = components['schemas']['UserBody']++export async function getUsers(+ { projectRef, page = 1, keywords = '', verified }: UsersVariables,+ signal?: AbortSignal+) {+ if (!projectRef) throw new Error('Project ref is required')++ const limit = USERS_PAGE_LIMIT+ const offset = (page - 1) * 10+ const query: { limit: string; offset: string; keywords: string; verified?: string } = {+ limit: limit.toString(),+ offset: offset.toString(),+ keywords,+ }+ if (verified) query.verified = verified++ const { data, error } = await get(`/platform/auth/{ref}/users`, {+ params: {+ path: { ref: projectRef },+ query: query as any,+ },+ signal,+ })++ if (error) throw error+ return data+}++export type UsersData = Awaited<ReturnType<typeof getUsers>>+export type UsersError = ResponseError++export const useUsersQuery = <TData = UsersData>(+ { projectRef, page, keywords, verified }: UsersVariables,+ { enabled = true, ...options }: UseQueryOptions<UsersData, UsersError, TData> = {}+) =>+ useQuery<UsersData, UsersError, TData>(+ authKeys.users(projectRef, { page, keywords, verified }),+ ({ signal }) => getUsers({ projectRef, page, keywords, verified }, signal),+ { enabled: enabled && typeof projectRef !== 'undefined', ...options }+ )diff --git a/studio/data/database/schema-create-mutation.ts b/studio/data/database/schema-create-mutation.tsnew file mode 100644index 00000000000..a5519a6e9aa--- /dev/null+++ b/studio/data/database/schema-create-mutation.ts@@ -0,0 +1,63 @@+import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'+import { toast } from 'react-hot-toast'++import { post } from 'data/fetchers'+import { ResponseError } from 'types'+import { databaseKeys } from './keys'++export type SchemaCreateVariables = {+ name: string+ projectRef?: string+ connectionString?: string+}++export async function createSchema({ name, projectRef, connectionString }: SchemaCreateVariables) {+ if (!projectRef) throw new Error('projectRef is required')+ if (!connectionString) throw new Error('Connection string is required')++ let headers = new Headers()+ headers.set('x-connection-encrypted', connectionString)++ const { data, error } = await post('/platform/pg-meta/{ref}/schemas', {+ params: {+ header: { 'x-connection-encrypted': connectionString },+ path: { ref: projectRef },+ },+ body: { name, owner: 'postgres' },+ headers: Object.fromEntries(headers),+ })++ if (error) throw error+ return data+}++type SchemaCreateData = Awaited<ReturnType<typeof createSchema>>++export const useSchemaCreateMutation = ({+ onSuccess,+ onError,+ ...options+}: Omit<+ UseMutationOptions<SchemaCreateData, ResponseError, SchemaCreateVariables>,+ 'mutationFn'+> = {}) => {+ const queryClient = useQueryClient()+ return useMutation<SchemaCreateData, ResponseError, SchemaCreateVariables>(+ (vars) => createSchema(vars),+ {+ async onSuccess(data, variables, context) {+ const { projectRef } = variables+ await queryClient.invalidateQueries(databaseKeys.schemaList(projectRef))+ await onSuccess?.(data, variables, context)+ },+ async onError(data, variables, context) {+ if (onError === undefined) {+ toast.error(`Failed to create schema: ${data.message}`)+ } else {+ onError(data, variables, context)+ }+ },+ ...options,+ }+ )+}diff --git a/studio/data/table-rows/table-rows-query.ts b/studio/data/table-rows/table-rows-query.tsindex 651fbe07716..edd01930ea6 100644--- a/studio/data/table-rows/table-rows-query.ts+++ b/studio/data/table-rows/table-rows-query.ts@@ -1,7 +1,12 @@import { QueryKey, UseQueryOptions } from '@tanstack/react-query'import { Filter, Query, Sort, SupaRow, SupaTable } from 'components/grid'import { useCallback } from 'react'-import { ExecuteSqlData, useExecuteSqlPrefetch, useExecuteSqlQuery } from '../sql/execute-sql-query'+import {+ ExecuteSqlData,+ executeSql,+ useExecuteSqlPrefetch,+ useExecuteSqlQuery,+} from '../sql/execute-sql-query'import { getPagination } from '../utils/pagination'import { formatFilterValue } from './utils'@@ -13,6 +18,66 @@ type GetTableRowsArgs = {page?: number}+// [Joshen] From components/grid/services/row/SqlRowService.ts, we should remove the logic from SqlRowService eventually+export const fetchAllTableRows = async ({+ projectRef,+ connectionString,+ table,+ filters = [],+ sorts = [],+}: {+ projectRef: string+ connectionString?: string+ table: SupaTable+ filters?: Filter[]+ sorts?: Sort[]+}) => {+ if (!connectionString) {+ console.error('Connection string is required')+ return []+ }++ const rows: any[] = []+ const query = new Query()++ let queryChains = query.from(table.name, table.schema ?? undefined).select()+ filters+ .filter((filter) => filter.value && filter.value !== '')+ .forEach((filter) => {+ const value = formatFilterValue(table, filter)+ queryChains = queryChains.filter(filter.column, filter.operator, value)+ })+ sorts.forEach((sort) => {+ queryChains = queryChains.order(sort.column, sort.ascending, sort.nullsFirst)+ })++ // Starting from page 0, fetch 500 records per call+ let page = -1+ let from = 0+ let to = 0+ let pageData = []+ const rowsPerPage = 500++ await (async () => {+ do {+ page += 1+ from = page * rowsPerPage+ to = (page + 1) * rowsPerPage - 1+ const query = queryChains.range(from, to).toSql()++ try {+ const { result } = await executeSql({ projectRef, connectionString, sql: query })+ rows.push(...result)+ pageData = result+ } catch (error) {+ return { data: { rows: [] } }+ }+ } while (pageData.length === rowsPerPage)+ })()++ return rows+}+export const getTableRowsSqlQuery = ({table,filters = [],diff --git a/studio/lib/helpers.ts b/studio/lib/helpers.tsindex fd74478d6bb..6a1a1962442 100644--- a/studio/lib/helpers.ts+++ b/studio/lib/helpers.ts@@ -14,9 +14,15 @@ export const tryParseJson = (jsonString: any) => {export const minifyJSON = (prettifiedJSON: string) => {try {- const res = JSON.stringify(JSON.parse(prettifiedJSON))- if (!isNaN(Number(res))) return Number(res)- else return res+ if (prettifiedJSON.trim() === '') {+ return null;+ }+ const res = JSON.stringify(JSON.parse(prettifiedJSON));+ if (!isNaN(Number(res))) {+ return Number(res)+ } else {+ return res+ }} catch (err) {throw err}diff --git a/studio/package.json b/studio/package.jsonindex 948d703f6d6..9b325070017 100644--- a/studio/package.json+++ b/studio/package.json@@ -55,7 +55,7 @@"file-saver": "^2.0.5","framer-motion": "^6.5.1","generate-password": "^1.7.0",- "graphql": "^16.6.0",+ "graphql": "^16.8.1","graphql-ws": "^5.11.3","html-to-image": "^1.10.8","immutability-helper": "^3.1.1",diff --git a/studio/pages/project/[ref]/auth/users.tsx b/studio/pages/project/[ref]/auth/users.tsxindex 58ae3914a0f..8f38370ca7f 100644--- a/studio/pages/project/[ref]/auth/users.tsx+++ b/studio/pages/project/[ref]/auth/users.tsx@@ -1,95 +1,12 @@-import React, { createContext, useContext, useEffect, PropsWithChildren } from 'react'-import { observer, useLocalObservable } from 'mobx-react-lite'-import { useRouter } from 'next/router'-import { get } from 'lib/common/fetch'+import { PermissionAction } from '@supabase/shared-types/out/constants'-import { API_URL } from 'lib/constants'-import { useCheckPermissions, useStore } from 'hooks'-import { AuthLayout } from 'components/layouts'import { Users } from 'components/interfaces/Auth'-import { NextPageWithLayout } from 'types'-import { PermissionAction } from '@supabase/shared-types/out/constants'+import { AuthLayout } from 'components/layouts'import NoPermission from 'components/ui/NoPermission'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import { toast } from 'react-hot-toast'--export const PageContext = createContext(null)--const PageLayout = ({ children }: PropsWithChildren<{}>) => {- const PageState: any = useLocalObservable(() => ({- projectRef: undefined,- projectKpsVersion: undefined,- filterInputValue: '',- filterKeywords: '',- filterVerified: undefined,- users: [],- totalUsers: 0,- usersLoading: true,- page: 1,- pageLimit: 10,- get fetchQuery() {- let queryObj = {- limit: this.pageLimit,- offset: (this.page - 1) * this.pageLimit,- keywords: this.filterKeywords,- }-- return this.filterVerified ? { ...queryObj, verified: this.filterVerified } : queryObj- },- get fromRow() {- const value = this.pageLimit * (this.page - 1) + 1- if (value > this.totalUsers) return this.totalUsers- return value- },- get toRow() {- const value = this.pageLimit * this.page- if (value > this.totalUsers) return this.totalUsers- return value- },- get hasPrevious() {- return this.page > 1- },- get hasNext() {- return this.toRow < this.totalUsers- },- updateData(data: any) {- this.usersLoading = false- this.totalUsers = data.total- this.users = data.users- },- async fetchData(page: any) {- this.usersLoading = true- this.page = page-- const query = new URLSearchParams(PageState.fetchQuery).toString()- const url = `${API_URL}/auth/${PageState.projectRef}/users?${query}`- const response = await get(url)- if (response.error) {- this.totalUsers = 0- this.users = []- this.usersLoading = false- toast.error(`Failed to fetch users: ${response.error.message}`)- } else {- this.totalUsers = response.total- this.users = response.users- this.usersLoading = false- }- },- }))- const router = useRouter()- PageState.projectRef = router.query.ref-- return <PageContext.Provider value={PageState}>{children}</PageContext.Provider>-}+import { useCheckPermissions } from 'hooks'+import { NextPageWithLayout } from 'types'const UsersPage: NextPageWithLayout = () => {- const PageState: any = useContext(PageContext)- const { project } = useProjectContext()-- useEffect(() => {- PageState!.projectKpsVersion = project?.kpsVersion- }, [project])-const canReadUsers = useCheckPermissions(PermissionAction.TENANT_SQL_SELECT, 'auth.users')return !canReadUsers ? (@@ -99,10 +16,6 @@ const UsersPage: NextPageWithLayout = () => {)}-UsersPage.getLayout = (page) => (- <AuthLayout title="Auth">- <PageLayout>{page}</PageLayout>- </AuthLayout>-)+UsersPage.getLayout = (page) => <AuthLayout title="Auth">{page}</AuthLayout>-export default observer(UsersPage)+export default UsersPagediff --git a/studio/pages/project/[ref]/database/hooks.tsx b/studio/pages/project/[ref]/database/hooks.tsxindex 121004351a1..099950eda65 100644--- a/studio/pages/project/[ref]/database/hooks.tsx+++ b/studio/pages/project/[ref]/database/hooks.tsx@@ -113,8 +113,8 @@ const HooksPage: NextPageWithLayout = () => {return (<>- <ScaffoldContainer>- <ScaffoldSection>+ <ScaffoldContainer className="h-full">+ <ScaffoldSection className="h-full"><div className="col-span-12"><HooksList createHook={createHook} editHook={editHook} deleteHook={deleteHook} /></div>diff --git a/studio/pages/project/[ref]/database/triggers.tsx b/studio/pages/project/[ref]/database/triggers.tsxindex 8bbdac52605..ff1abd91597 100644--- a/studio/pages/project/[ref]/database/triggers.tsx+++ b/studio/pages/project/[ref]/database/triggers.tsx@@ -12,7 +12,7 @@ import { NextPageWithLayout } from 'types'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'const TriggersPage: NextPageWithLayout = () => {- const { meta } = useStore()+ const { meta, ui } = useStore()const { project } = useProjectContext()const [selectedTrigger, setSelectedTrigger] = useState<any>()@@ -22,10 +22,8 @@ const TriggersPage: NextPageWithLayout = () => {const canReadTriggers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'triggers')useEffect(() => {- if (project?.ref) {- fetchTriggers()- }- }, [project?.ref])+ if (ui.selectedProjectRef) fetchTriggers()+ }, [ui.selectedProjectRef])const fetchTriggers = async () => {meta.triggers.load()diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsxindex 3cbb7fddc8a..295c9f848e2 100644--- a/studio/pages/project/[ref]/settings/api.tsx+++ b/studio/pages/project/[ref]/settings/api.tsx@@ -1,57 +1,32 @@-import { observer, useLocalObservable } from 'mobx-react-lite'-import { createContext } from 'react'+import { IconAlertCircle } from 'ui'-import { useParams } from 'common/hooks'import ServiceList from 'components/interfaces/Settings/API/ServiceList'import { SettingsLayout } from 'components/layouts'-import {- useIsProjectActive,- useProjectContext,-} from 'components/layouts/ProjectLayout/ProjectContext'-import { useStore } from 'hooks'+import { useIsProjectActive } from 'components/layouts/ProjectLayout/ProjectContext'import { NextPageWithLayout } from 'types'-import { IconAlertCircle } from 'ui'--export const PageContext: any = createContext(null)const ApiSettings: NextPageWithLayout = () => {- const { ref } = useParams()- const { ui, meta } = useStore()- const { project } = useProjectContext()const isActive = useIsProjectActive()- // [Joshen] Will need to deprecate this- const PageState: any = useLocalObservable(() => ({- project: null,- projectRef: ref,- meta: null,- }))-- PageContext.meta = meta- PageContext.project = project- if (meta) PageState.meta = meta-return (- <PageContext.Provider value={PageState}>- <div className="flex flex-col gap-8 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 xl:px-24 2xl:px-32">- {isActive ? (- <ServiceList />- ) : (- <div>- <h3 className="mb-6 text-xl text-scale-1200">API Settings</h3>- <div className="flex items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">- <IconAlertCircle strokeWidth={1.5} />- <p className="text-sm text-scale-1100 ml-2">- API settings are unavailable as the project is not active- </p>- </div>+ <div className="flex flex-col gap-8 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 xl:px-24 2xl:px-32">+ {isActive ? (+ <ServiceList />+ ) : (+ <div>+ <h3 className="mb-6 text-xl text-scale-1200">API Settings</h3>+ <div className="flex items-center justify-center rounded border border-scale-400 bg-scale-300 p-8">+ <IconAlertCircle strokeWidth={1.5} />+ <p className="text-sm text-scale-1100 ml-2">+ API settings are unavailable as the project is not active+ </p></div>- )}- </div>- </PageContext.Provider>+ </div>+ )}+ </div>)}ApiSettings.getLayout = (page) => <SettingsLayout title="API Settings">{page}</SettingsLayout>-export default observer(ApiSettings)+export default ApiSettingsdiff --git a/studio/state/table-editor.tsx b/studio/state/table-editor.tsxindex 3b38c94f5e1..ccbb13ac511 100644--- a/studio/state/table-editor.tsx+++ b/studio/state/table-editor.tsx@@ -15,6 +15,7 @@ export type SidePanel =| { type: 'row'; row?: Dictionary<any> }| { type: 'column'; column?: PostgresColumn }| { type: 'table'; mode: 'new' | 'edit' | 'duplicate' }+ | { type: 'schema'; mode: 'new' | 'edit' }| { type: 'json'; jsonValue: JsonEditValue }| {type: 'foreign-row-selector'@@ -61,6 +62,13 @@ export const createTableEditorState = () => {state.ui = { open: 'none' }},+ onAddSchema: () => {+ state.ui = {+ open: 'side-panel',+ sidePanel: { type: 'schema', mode: 'new' },+ }+ },+/* Tables */onAddTable: () => {state.ui = {