The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update
Terry Sutton82ad87420f35
diff --git a/apps/docs/docs/company/aup.md b/apps/docs/docs/company/aup.mdindex 5e02cae3a8a..770b7c6f304 100644--- a/apps/docs/docs/company/aup.md+++ b/apps/docs/docs/company/aup.md@@ -1,6 +1,9 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auptitle: Acceptable Use Policy+---`Last Modified: 15 April 2021`diff --git a/apps/docs/docs/company/privacy.md b/apps/docs/docs/company/privacy.mdindex 2d5e6ab833b..1f21ec1e4e3 100644--- a/apps/docs/docs/company/privacy.md+++ b/apps/docs/docs/company/privacy.md@@ -1,6 +1,9 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: privacytitle: Privacy Policy+---`Last modified: 27 March 2021`diff --git a/apps/docs/docs/company/sla.md b/apps/docs/docs/company/sla.mdindex 00cbf36e740..f0bf57dad1b 100644--- a/apps/docs/docs/company/sla.md+++ b/apps/docs/docs/company/sla.md@@ -1,6 +1,9 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: slatitle: Service Level Agreement+---The following Service Level Agreement, which is incorporated into and forms part of the Subscription Agreement between Supabase, Inc. ("Supabase") and Customer (the "Agreement"), will apply to the Services for Enterprise Customers specified in an Order Form during the applicable Subscription Term:diff --git a/apps/docs/docs/company/terms.md b/apps/docs/docs/company/terms.mdindex 60fd3ce9eb4..7189417235a 100644--- a/apps/docs/docs/company/terms.md+++ b/apps/docs/docs/company/terms.md@@ -1,6 +1,9 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: termstitle: Terms of Service+---`Last Modified: 20 November 2020`diff --git a/apps/docs/docs/faq.mdx b/apps/docs/docs/faq.mdxindex 71bb4a1f525..927aadb9a8d 100644--- a/apps/docs/docs/faq.mdx+++ b/apps/docs/docs/faq.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: faqtitle: FAQsdescription: 'Most frequently asked questions regarding Supabase'diff --git a/apps/docs/docs/features.mdx b/apps/docs/docs/features.mdxdeleted file mode 100755index 4bcf932de71..00000000000--- a/apps/docs/docs/features.mdx+++ /dev/null@@ -1,172 +0,0 @@-----id: features-title: Features-description: 'Supabase features'------This is a non-exhaustive list of features that Supabase provides for every project.--## Database--### Postgres Database--Every project is a full Postgres database. [Docs](/docs/guides/database).--### Database Extensions--Every database comes with a full set of Postgres extensions. [Docs](/docs/guides/database/extensions).--### Database Functions--Create custom database functions which you can call from the browser. [Docs](/docs/guides/database/functions).--### Database Triggers--Attach triggers to your tables to handle database changes. [Docs](/docs/guides/auth/managing-user-data#using-triggers).--### Database Webhooks--Send database changes to any external service using Webhooks. [Link](https://supabase.com/blog/supabase-functions-updates#database-webhooks-alpha).--### Database Backups--Projects are backed up daily with the option to upgrade to Point in Time recovery.--### Search--Build search functionality using Postgres Full Text Search. [Docs](/docs/guides/database/full-text-search).--### Secrets and encryption--Encrypt sensitive data and store secrets using our Postgres extension, Supabase Vault. [Link](https://supabase.com/blog/supabase-vault).--### Database migrations--Develop locally and push your changes to your production database using migrations. [Docs](/docs/guides/cli/local-development#database-migrations)--<br />--## Auth--### Email & Password Logins--Build email logins for your application or website. [Docs](/docs/guides/auth/auth-email).--### Magic Links--Build passwordless logins for your application or website.[Docs](/docs/guides/auth/auth-magic-link).--### Social Logins--Provide social logins - everything from Apple, to GitHub, to Slack. [Docs](/docs/guides/auth/auth-apple).--### Phone Logins--Provide phone logins using a 3rd-party SMS provider. [Docs](/docs/guides/auth/auth-twilio).--### Row Level Security--Control the data each user can access with Postgres Policies. [Docs](/docs/guides/auth/row-level-security).--### Serverside Auth Helpers--Helpers for implementing user authentication in popular frameworks like [Next.js](/docs/guides/auth/auth-helpers/nextjs) and [SvelteKit](/docs/guides/auth/auth-helpers/sveltekit)--### Auth UI Kit--Build login and registration pages with custom themes. [Docs](/docs/guides/auth/auth-helpers/auth-ui).--<br />--## APIs & Client libraries--### Auto-generated REST API--RESTful APIs are autogenerated from your database, without a single line of code. [Docs](/docs/guides/api#rest-api-overview).--### Auto-generated GraphQL API--Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guides/api#graphql-api-overview).--### Realtime Database changes--Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-cdc).--### User Broadcasting--Send messages between connected users through websockets. [Docs](/docs/guides/realtime#broadcast).--### User Presence--Synchronize shared state across your users, including online status and typing indicators. [Docs](/docs/guides/realtime#presence).--### Client libraries--Official client libraries for [JavaScript](/docs/reference/javascript/) and [Dart](/docs/reference/dart).-Unofficial libraries [supported by the community](https://github.com/supabase-community#client-libraries).--<br />--## File Storage--### Large File storage--Supabase Storage makes it simple to store and serve large files. [Docs](/docs/guides/storage).--### Storage CDN--Cache large files using the Supabase CDN. [Docs](/docs/guides/storage-cdn).--<br />--## Edge Functions--### Deno Edge Functions--Globally distributed TypeScript functions to execute custom business logic. [Docs](/docs/guides/functions).--<br />--## Project Managment--### CLI--Use our CLI to develop your project locally and deploy to the Supabase Platform. [Docs](/docs/reference/cli).--### Management API--Manage your projects programmatically. [Docs](/docs/reference/api).--<br />--## Feature Status--Both Postgres and the Supabase Platform are production-ready. Some tools we offer on top of Postgres are still under development.--| Product | Feature | Stage |-| -------------------------- | ---------------------- | ------- |-| Database | Postgres | `GA` |-| Database | Triggers | `GA` |-| Database | Functions | `GA` |-| Database | Extensions | `GA` |-| Database | Full Text Search | `GA` |-| Database | Webhooks | `alpha` |-| Database | Point-in-Time Recovery | `alpha` |-| Database | Vault | `alpha` |-| Studio | | `GA` |-| Realtime | Postgres CDC | `beta` |-| Realtime | Broadcast | `alpha` |-| Realtime | Presence | `alpha` |-| Storage | Backend (S3) | `GA` |-| Storage | API | `beta` |-| Storage | CDN | `beta` |-| Edge Functions | | `beta` |-| Auth | OAuth Providers | `beta` |-| Auth | Passwordless | `beta` |-| Auth | Next.js Auth Helpers | `alpha` |-| Auth | SvelteKit Auth Helpers | `alpha` |-| Auth | Remix Auth Helpers | `alpha` |-| Management API | | `beta` |-| CLI | | `beta` |-| Client Library: JavaScript | | `GA` |-| Client Library: Dart | | `beta` |diff --git a/apps/docs/docs/handbook/contributing.mdx b/apps/docs/docs/handbook/contributing.mdxindex eb57cf52e3e..b37e7a3c78e 100644--- a/apps/docs/docs/handbook/contributing.mdx+++ b/apps/docs/docs/handbook/contributing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: contributingtitle: Contributingdescription: Want to help?@@ -24,4 +26,3 @@ Want to contribute? Why not jump into our GitHub repo and:- [Translate our Readme](https://github.com/supabase/supabase/issues/1341).- Try our products and give feedback.- Spread the word if you like what we are doing.-diff --git a/apps/docs/docs/handbook/introduction.mdx b/apps/docs/docs/handbook/introduction.mdxindex 091ad734753..1e8a4abf1a4 100644--- a/apps/docs/docs/handbook/introduction.mdx+++ b/apps/docs/docs/handbook/introduction.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: introductiontitle: Supabase Handbookdescription: 'The Supabase public handbook and manifesto'diff --git a/apps/docs/docs/handbook/supasquad.mdx b/apps/docs/docs/handbook/supasquad.mdxindex d77d81af301..21501770116 100644--- a/apps/docs/docs/handbook/supasquad.mdx+++ b/apps/docs/docs/handbook/supasquad.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: supasquadtitle: SupaSquaddescription: Supabase Advocate program@@ -66,24 +68,23 @@ Apply to join the program using [this form](https://airtable.com/shr0FtLqLfhpuEy<summary><i>Why are you only admitting 20 new members?</i></summary>- The entire Supabase team is only 20 people, so as you can imagine adding another- 20 people sounds like a lot to us! We wish we could admit everyone who wanted to- join. But we also want to make sure everyone who joins the Squad has an awesome- experience. In the future we will probably expand the intake to include a monthly- quota.+ The entire Supabase team is only 20 people, so as you can imagine adding another 20 people sounds like+ a lot to us! We wish we could admit everyone who wanted to join. But we also want to make sure everyone+ who joins the Squad has an awesome experience. In the future we will probably expand the intake to+ include a monthly quota.</details><details><summary><i>What is expected?</i></summary>- Mostly just enthusiasm. If you are interested in Open Source and want to get involved,- the SupaSquad program is a great channel. You'll be given opportunities to contribute- to the community in whatever ways match your skillset.+ Mostly just enthusiasm. If you are interested in Open Source and want to get involved, the SupaSquad+ program is a great channel. You'll be given opportunities to contribute to the community in whatever+ ways match your skillset.</details><details><summary><i>What if I become too busy to contribute?</i></summary>- No worries! The program isn't a job. It's just an opportunity to build your skillset- and audience within the Supabase ecosystem.+ No worries! The program isn't a job. It's just an opportunity to build your skillset and audience within+ the Supabase ecosystem.</details>diff --git a/apps/docs/docs/introduction.mdx b/apps/docs/docs/introduction.mdxindex f8c9184ad6a..7ba994790e1 100644--- a/apps/docs/docs/introduction.mdx+++ b/apps/docs/docs/introduction.mdx@@ -1,9 +1,11 @@-----id: 'introduction'-title: 'Introduction'-description: 'Introduction to Supabase'-hide_table_of_contents: true----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ id: 'introduction',+ title: 'Introduction',+ description: 'Introduction to Supabase',+ hide_table_of_contents: true,+}Supabase is an open source Firebase alternative providing all the backend features you need to build a product.You can use it completely, or just the features you need.@@ -83,3 +85,7 @@ You can use it completely, or just the features you need.Supabase is just Postgres, which makes it compatible with a large number of tools and frameworks.<Frameworks />++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdxindex e1d0cebc6de..d3a5afbf549 100644--- a/apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdx+++ b/apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-deep-dive-jwtstitle: 'Part One: JWTs'description: Supabase Auth Deep Dive Part 1 - JWTs@@ -11,7 +13,12 @@ An introduction to JWTs and how they are used in Supabase Auth### Watch<div className="video-container">-<iframe src="https://www.youtube-nocookie.com/embed/v3Exg5YpJvE" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>+ <iframe+ src="https://www.youtube-nocookie.com/embed/v3Exg5YpJvE"+ frameBorder="1"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ ></iframe></div>### What are JSON Web Tokens (JWTs)?diff --git a/apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdxindex 33c93f82e5a..fae11eb71a6 100644--- a/apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdx+++ b/apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-google-oauthtitle: 'Part Five: Google Oauth'description: 'Supabase Deep Dive Part 5: Google OAuth Provider'diff --git a/apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdxindex e73941687c4..e8d1ef35a55 100644--- a/apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdx+++ b/apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-gotruetitle: 'Part Four: GoTrue'description: 'Supabase Deep Dive Part 4: Gotrue Overview'@@ -11,7 +13,12 @@ How to restrict table access to authenticated users, row level policies, and ema### Watch<div className="video-container">-<iframe src="https://www.youtube.com/embed/neqfYym_84k" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>+ <iframe+ src="https://www.youtube.com/embed/neqfYym_84k"+ frameBorder="1"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ ></iframe></div>### Gotrue Serverdiff --git a/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdxindex 08635dcabfc..5ca998ea214 100644--- a/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx+++ b/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-policiestitle: 'Part Three: Policies'description: 'Supabase Auth Deep Dive Part 3: User Based Access Policies'@@ -11,7 +13,12 @@ How to restrict table access to authenticated users, row level policies, and ema### Watch<div className="video-container">-<iframe src="https://www.youtube-nocookie.com/embed/0LvCOlELs5U" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>+ <iframe+ src="https://www.youtube-nocookie.com/embed/0LvCOlELs5U"+ frameBorder="1"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ ></iframe></div>### User based row level policiesdiff --git a/apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdxindex 1004047a0ce..69085ac5983 100644--- a/apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdx+++ b/apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-row-level-securitytitle: 'Part Two: Row Level Security'description: Supabase Auth Deep Dive Part Two - Row Level Securitydiff --git a/apps/docs/docs/reference.mdx b/apps/docs/docs/reference.mdxindex 66af911fe47..f2cfbeb10fe 100644--- a/apps/docs/docs/reference.mdx+++ b/apps/docs/docs/reference.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: referencetitle: Reference Documentationsidebar_label: Reference Documentationdiff --git a/apps/docs/docs/reference/api/release-notes.mdx b/apps/docs/docs/reference/api/release-notes.mdxindex 266d24b2f35..0fae00004e2 100644--- a/apps/docs/docs/reference/api/release-notes.mdx+++ b/apps/docs/docs/reference/api/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notestitle: Release Notes---diff --git a/apps/docs/docs/reference/auth/release-notes.mdx b/apps/docs/docs/reference/auth/release-notes.mdxindex 31f92638755..bfae6876d12 100644--- a/apps/docs/docs/reference/auth/release-notes.mdx+++ b/apps/docs/docs/reference/auth/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notestitle: Release Notes---diff --git a/apps/docs/docs/reference/cli.mdx b/apps/docs/docs/reference/cli.mdxindex 5bfbe7e543a..0e55fad78b8 100644--- a/apps/docs/docs/reference/cli.mdx+++ b/apps/docs/docs/reference/cli.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: introslug: /sidebar_position: 1diff --git a/apps/docs/docs/reference/cli/release-notes.mdx b/apps/docs/docs/reference/cli/release-notes.mdxindex 90221a3236c..b11a7d48ca0 100644--- a/apps/docs/docs/reference/cli/release-notes.mdx+++ b/apps/docs/docs/reference/cli/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notestitle: Release Notes---diff --git a/apps/docs/docs/reference/dart.mdx b/apps/docs/docs/reference/dart.mdxindex 88095e50392..1f31674526a 100644--- a/apps/docs/docs/reference/dart.mdx+++ b/apps/docs/docs/reference/dart.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: introslug: /title: Supabase Flutter Librarydiff --git a/apps/docs/docs/reference/dart/initializing.mdx b/apps/docs/docs/reference/dart/initializing.mdxindex 00a69bbf1f3..be7552e45fa 100644--- a/apps/docs/docs/reference/dart/initializing.mdx+++ b/apps/docs/docs/reference/dart/initializing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: initializingtitle: 'Initializing'slug: initializingdiff --git a/apps/docs/docs/reference/dart/installing.mdx b/apps/docs/docs/reference/dart/installing.mdxindex 49822681a67..d3edc0a2a6d 100644--- a/apps/docs/docs/reference/dart/installing.mdx+++ b/apps/docs/docs/reference/dart/installing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: installingtitle: 'Installing'slug: installingdiff --git a/apps/docs/docs/reference/dart/upgrade-guide.mdx b/apps/docs/docs/reference/dart/upgrade-guide.mdxindex 707cdd06129..47fdc45e4c7 100644--- a/apps/docs/docs/reference/dart/upgrade-guide.mdx+++ b/apps/docs/docs/reference/dart/upgrade-guide.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: upgrade-guidetitle: Upgrade to supabase-flutter v1description: 'Learn how to upgrade to supabase-flutter v1.'diff --git a/apps/docs/docs/reference/dart/v0.mdx b/apps/docs/docs/reference/dart/v0.mdxindex 9d8f0a3c03e..d0a3c5be83f 100644--- a/apps/docs/docs/reference/dart/v0.mdx+++ b/apps/docs/docs/reference/dart/v0.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: introslug: /sidebar_label: Supabase Dart Librarydiff --git a/apps/docs/docs/reference/javascript/installing.mdx b/apps/docs/docs/reference/javascript/installing.mdxindex 8fdc1a90e8a..dd5e6ec19e3 100644--- a/apps/docs/docs/reference/javascript/installing.mdx+++ b/apps/docs/docs/reference/javascript/installing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: installingtitle: 'Installing'slug: installingdiff --git a/apps/docs/docs/reference/javascript/release-notes.mdx b/apps/docs/docs/reference/javascript/release-notes.mdxindex f57ce53d342..73d1ac32eed 100644--- a/apps/docs/docs/reference/javascript/release-notes.mdx+++ b/apps/docs/docs/reference/javascript/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notestitle: Release Notes---diff --git a/apps/docs/docs/reference/javascript/typescript-support.mdx b/apps/docs/docs/reference/javascript/typescript-support.mdxindex fc1c765f752..3e67f8ac06a 100644--- a/apps/docs/docs/reference/javascript/typescript-support.mdx+++ b/apps/docs/docs/reference/javascript/typescript-support.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: typescript-supporttitle: Typescript Support---diff --git a/apps/docs/docs/reference/javascript/upgrade-guide.mdx b/apps/docs/docs/reference/javascript/upgrade-guide.mdxindex d02770e854f..79b7cdae01d 100644--- a/apps/docs/docs/reference/javascript/upgrade-guide.mdx+++ b/apps/docs/docs/reference/javascript/upgrade-guide.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: upgrade-guidetitle: Upgrade to supabase-js v2description: 'Learn how to upgrade to supabase-js v2.'diff --git a/apps/docs/docs/reference/javascript/v1.mdx b/apps/docs/docs/reference/javascript/v1.mdxindex d31fd568739..1eeb1e6cd65 100644--- a/apps/docs/docs/reference/javascript/v1.mdx+++ b/apps/docs/docs/reference/javascript/v1.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: introtitle: 'Supabase JavaScript Library'slug: /diff --git a/apps/docs/docs/reference/javascript/v1/generating-types.mdx b/apps/docs/docs/reference/javascript/v1/generating-types.mdxindex 033cfdb9165..9b7a2f0c669 100644--- a/apps/docs/docs/reference/javascript/v1/generating-types.mdx+++ b/apps/docs/docs/reference/javascript/v1/generating-types.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: generating-typestitle: 'Generating Types'slug: generating-typesdiff --git a/apps/docs/docs/reference/javascript/v1/initializing.mdx b/apps/docs/docs/reference/javascript/v1/initializing.mdxindex 46d057e1cca..6227689efcb 100644--- a/apps/docs/docs/reference/javascript/v1/initializing.mdx+++ b/apps/docs/docs/reference/javascript/v1/initializing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: initializingtitle: 'Initializing'slug: initializing@@ -16,7 +18,7 @@ and is the easiest way to interact with everything we offer within the Supabase## Parameters<ul className="method-list-group">-+<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">@@ -34,7 +36,7 @@ and is the easiest way to interact with everything we offer within the SupabaseThe unique Supabase URL which is supplied when you create a new project in your project dashboard.</div>-+</li><li className="method-list-item">@@ -54,7 +56,7 @@ The unique Supabase URL which is supplied when you create a new project in yourThe unique Supabase Key which is supplied when you create a new project in your project dashboard.</div>-+</li><li className="method-list-item">@@ -74,7 +76,7 @@ The unique Supabase Key which is supplied when you create a new project in yourNo description provided.</div>-+</li></ul>diff --git a/apps/docs/docs/reference/javascript/v1/installing.mdx b/apps/docs/docs/reference/javascript/v1/installing.mdxindex 4441c7253d7..9f9644c014f 100644--- a/apps/docs/docs/reference/javascript/v1/installing.mdx+++ b/apps/docs/docs/reference/javascript/v1/installing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: installingtitle: 'Installing'slug: installingdiff --git a/apps/docs/docs/reference/postgres/changing-timezones.mdx b/apps/docs/docs/reference/postgres/changing-timezones.mdxindex d05e32afc8b..2cac895ca8e 100644--- a/apps/docs/docs/reference/postgres/changing-timezones.mdx+++ b/apps/docs/docs/reference/postgres/changing-timezones.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: changing-timezonestitle: "Changing Timezones"slug: changing-timezones@@ -10,7 +12,6 @@ import TabsPanel from '@theme/TabsPanel';Data types.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -19,38 +20,22 @@ Data types.<TabsPanel id="sql" label="sql">```sql-alter database postgres+alter database postgresset timezone to 'America/New_York';```-</TabsPanel></Tabs>----## Notes- View a full list of timezones on [Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).---------## Examples### Change timezone--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -59,11 +44,10 @@ set timezone to 'America/New_York';<TabsPanel id="sql" label="sql">```sql-alter database postgres+alter database postgresset timezone to 'America/New_York';```-</TabsPanel></Tabs>@@ -77,7 +61,6 @@ Get a full list of timezones supported by your database. This will return the fo- `utc_offset`: Offset from UTC (positive means east of Greenwich)- `is_dst`: True if currently observing daylight savings-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -87,11 +70,10 @@ Get a full list of timezones supported by your database. This will return the fo```sqlselect name, abbrev, utc_offset, is_dst-from pg_timezone_names()+from pg_timezone_names()order by name;```-</TabsPanel></Tabs>@@ -108,12 +90,11 @@ Use `ilike` (case insensitive search) to find specific timezones.<TabsPanel id="sql" label="sql">```sql-select *-from pg_timezone_names()+select *+from pg_timezone_names()where name ilike '%york%';```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/columns.mdx b/apps/docs/docs/reference/postgres/columns.mdxindex 0ccaa830381..18d6f0b0691 100644--- a/apps/docs/docs/reference/postgres/columns.mdx+++ b/apps/docs/docs/reference/postgres/columns.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: columnstitle: "Columns"slug: columns@@ -10,7 +12,6 @@ import TabsPanel from '@theme/TabsPanel';Creating columns.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -26,33 +27,14 @@ create table table_name ();```-</TabsPanel></Tabs>----------------## Examples### During table creation--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -68,15 +50,12 @@ create table table_name ();```-</TabsPanel></Tabs>### Create column--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -89,7 +68,6 @@ alter table new_tableadd new_column text;```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/connection-strings.mdx b/apps/docs/docs/reference/postgres/connection-strings.mdxindex 12e4f919c9c..9cae96eeb87 100644--- a/apps/docs/docs/reference/postgres/connection-strings.mdx+++ b/apps/docs/docs/reference/postgres/connection-strings.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: connection-stringstitle: "Connection Strings"slug: connection-strings@@ -10,7 +12,6 @@ import TabsPanel from '@theme/TabsPanel';There are various ways to connect to your database, depending on the configuration of your Postgres instance and the tool which you are connecting with.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -20,42 +21,27 @@ There are various ways to connect to your database, depending on the configurati```bashpostgres://postgres:postgres@localhost:5432/postgres-# or+# orpostgresql://postgres:postgres@localhost:5432/postgres```-</TabsPanel></Tabs>----## Notes- [Official Documentation](https://www.postgresql.org/docs/current/libpq-connect.html).- Avoid using special characters usernames and passwords. If you use special characters in a connection URL, you'll need to URL encode any special characters.---------## Examples### Basic connection string-If you're using a default setup, your postgres connection string will likely be in the format:+If you're using a default setup, your postgres connection string will likely be in the format:`postgres://{user}:{password}@{host}:{port}/{database_name}`-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -65,11 +51,10 @@ If you're using a default setup, your postgres connection string will likely be```bashpostgres://postgres:postgres@localhost:5432/postgres-# or+# orpostgresql://postgres:postgres@localhost:5432/postgres```-</TabsPanel></Tabs>@@ -89,7 +74,6 @@ See full [documentation](http://jdbc.postgresql.org/documentation/head/connect.hjdbc:postgresql://{host}:{port}/{database_name}```-</TabsPanel></Tabs>@@ -109,7 +93,6 @@ See full [documentation](http://npgsql.projects.postgresql.org/docs/manual/UserMServer=host;Port=5432;User Id=username;Password=secret;Database=database_name;```-</TabsPanel></Tabs>@@ -129,7 +112,6 @@ See full [documentation](http://php.net/manual/en/book.pgsql.php).host=hostname port=5432 dbname=databasename user=username password=secret```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/database-passwords.mdx b/apps/docs/docs/reference/postgres/database-passwords.mdxindex 9f58234b1a1..6a4e46c8f67 100644--- a/apps/docs/docs/reference/postgres/database-passwords.mdx+++ b/apps/docs/docs/reference/postgres/database-passwords.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: database-passwordstitle: "Database Passwords"slug: database-passwords@@ -10,31 +12,10 @@ import TabsPanel from '@theme/TabsPanel';Manage the passwords of your database users using any super user.-------------------## Examples### Password reset--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -43,11 +24,10 @@ Manage the passwords of your database users using any super user.<TabsPanel id="sql" label="sql">```sql-alter user postgres+alter user postgreswith password 'new_password';```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/database-users.mdx b/apps/docs/docs/reference/postgres/database-users.mdxindex 8ccca2ce94a..753a5f3a819 100644--- a/apps/docs/docs/reference/postgres/database-users.mdx+++ b/apps/docs/docs/reference/postgres/database-users.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: database-userstitle: "Database Users"slug: database-users@@ -10,31 +12,10 @@ import TabsPanel from '@theme/TabsPanel';Users and Roles are almost interchangeable.-------------------## Examples### Create New User--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -47,7 +28,6 @@ create user new_userwith password 'hello';```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/index.mdx b/apps/docs/docs/reference/postgres/index.mdxindex b6641472785..9271322bb56 100644--- a/apps/docs/docs/reference/postgres/index.mdx+++ b/apps/docs/docs/reference/postgres/index.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: indextitle: "Getting started"slug: getting-started@@ -8,8 +10,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postgimport Tabs from '@theme/Tabs';import TabsPanel from '@theme/TabsPanel';--PostgreSQL, also known as Postgres, is a free and open-source relational-database management system emphasizing extensibility and SQL compliance.-It was originally named POSTGRES, referring to its origins as a successor-to the Ingres database developed at the University of California, Berkeley.\ No newline at end of file+PostgreSQL, also known as Postgres, is a free and open-source relational+database management system emphasizing extensibility and SQL compliance.+It was originally named POSTGRES, referring to its origins as a successor+to the Ingres database developed at the University of California, Berkeley.diff --git a/apps/docs/docs/reference/postgres/publications.mdx b/apps/docs/docs/reference/postgres/publications.mdxindex 87559a38e34..373721de5b4 100644--- a/apps/docs/docs/reference/postgres/publications.mdx+++ b/apps/docs/docs/reference/postgres/publications.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: publicationstitle: "Publications"slug: publications@@ -8,35 +10,15 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postgimport Tabs from '@theme/Tabs';import TabsPanel from '@theme/TabsPanel';-Publications are a way of grouping changes generated from a table or a group of tables.+Publications are a way of grouping changes generated from a table or a group of tables.These changes can then be sent to other systems (usually another Postgres database).-------------------## Examples### Create a PublicationThis publication will contain all changes to all tables.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -45,19 +27,16 @@ This publication will contain all changes to all tables.<TabsPanel id="sql" label="sql">```sql-create publication publication_name+create publication publication_namefor all tables;```-</TabsPanel></Tabs>### Create a Publication which listens to individual tables--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -66,19 +45,16 @@ for all tables;<TabsPanel id="sql" label="sql">```sql-create publication publication_name+create publication publication_namefor table table_one, table_two;```-</TabsPanel></Tabs>### Add tables to an existing publication--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -87,19 +63,16 @@ for table table_one, table_two;<TabsPanel id="sql" label="sql">```sql-alter publication publication_name+alter publication publication_nameadd table table_name;```-</TabsPanel></Tabs>### Listens to inserts only--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -108,20 +81,17 @@ add table table_name;<TabsPanel id="sql" label="sql">```sql-create publication publication_name+create publication publication_namefor all tableswith (publish = 'insert');```-</TabsPanel></Tabs>### Listens to updates only--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -130,20 +100,17 @@ with (publish = 'insert');<TabsPanel id="sql" label="sql">```sql-create publication publication_name+create publication publication_namefor all tableswith (publish = 'update');```-</TabsPanel></Tabs>### Listens to deletions only--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -152,20 +119,17 @@ with (publish = 'update');<TabsPanel id="sql" label="sql">```sql-create publication publication_name+create publication publication_namefor all tableswith (publish = 'delete');```-</TabsPanel></Tabs>### Remove a Publication--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -177,7 +141,6 @@ with (publish = 'delete');drop publication if exists publication_name;```-</TabsPanel></Tabs>@@ -186,7 +149,6 @@ drop publication if exists publication_name;If you are planning to re-create a publication, it's best to do it in a transaction to ensure the operation succeeds.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -195,16 +157,15 @@ If you are planning to re-create a publication, it's best to do it in a transact<TabsPanel id="sql" label="sql">```sql-begin;+begin;-- remove the realtime publication- drop publication if exists publication_name;+ drop publication if exists publication_name;-- re-create the publication but don't enable it for any tables- create publication publication_name;+ create publication publication_name;commit;```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/schemas.mdx b/apps/docs/docs/reference/postgres/schemas.mdxindex ad4fbf6d9ef..d0bab179952 100644--- a/apps/docs/docs/reference/postgres/schemas.mdx+++ b/apps/docs/docs/reference/postgres/schemas.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: schemastitle: "Schemas"slug: schemas@@ -8,12 +10,11 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postgimport Tabs from '@theme/Tabs';import TabsPanel from '@theme/TabsPanel';-Schemas are like "folders". They help to keep your database organized.+Schemas are like "folders". They help to keep your database organized.-Schemas are particularly useful for security. You can set different permissions on each schema.+Schemas are particularly useful for security. You can set different permissions on each schema.For example, you might want to use a `public` schema for user-facing data, and an `auth` schema for all logins and secured data.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -25,36 +26,20 @@ For example, you might want to use a `public` schema for user-facing data, and acreate schema schema_name;```-</TabsPanel></Tabs>----## Notes- Schemas contain [tables](/docs/reference/postgres/tables), columns, triggers, functions, etc.- Postgres comes with a `public` schema set up by default.- It is best practice to use lowercase and underscores when naming schemas. For example: `schema_name`, not `Schema Name`.---------## Examples### Creating a schema--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -66,15 +51,12 @@ create schema schema_name;create schema schema_name;```-</TabsPanel></Tabs>### Removing a schema--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -86,7 +68,6 @@ create schema schema_name;drop schema if exists schema_name;```-</TabsPanel></Tabs>@@ -96,7 +77,6 @@ drop schema if exists schema_name;Although it's not recommended, you can use uppercase and spaces when naming your schema by wrapping the name with double-quotes.As a result, you will always need to use double-quotes when referencing your schema.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -108,7 +88,6 @@ As a result, you will always need to use double-quotes when referencing your schcreate schema "Schema Name";```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/postgres/tables.mdx b/apps/docs/docs/reference/postgres/tables.mdxindex 05df802a961..74d7fe841bf 100644--- a/apps/docs/docs/reference/postgres/tables.mdx+++ b/apps/docs/docs/reference/postgres/tables.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: tablestitle: "Tables"slug: tables@@ -13,7 +15,6 @@ Tables are similar to excel spreadsheets. They contain columns & rows of data. T- Every column is a strict type of data. When you set up a column, you must define what "data type" it is.- Tables can be joined together through relationships. For example you can have a "users" table, which is joined to a "teams" table.-<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -28,7 +29,7 @@ create table table_name (name text);-# with schema+# with schemacreate table schema_name.table_name (id integer primary key,data jsonb,@@ -36,36 +37,20 @@ create table schema_name.table_name ();```-</TabsPanel></Tabs>----## Notes-- Tables contain columns, rows, triggers, comments,+- Tables contain columns, rows, triggers, comments,- It is best practice to use lowercase and underscores when naming tables. For example: `table_name`, not `Table Name`.- Tables belong to [schemas](/docs/reference/postgres/schemas). If you don't explicitly pass the schema, Postgres will assume that you want to create the table in the `public` schema.---------## Examples### Create table--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -80,7 +65,7 @@ create table table_name (name text);-# with schema+# with schemacreate table schema_name.table_name (id integer primary key,data jsonb,@@ -88,15 +73,12 @@ create table schema_name.table_name ();```-</TabsPanel></Tabs>### Primary keys using multiple columns--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -113,15 +95,12 @@ create table table_name ();```-</TabsPanel></Tabs>### Multiple foreign keys to the same table--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -135,15 +114,12 @@ alter table table_nameadd constraint constraint_name_2 foreign key (column_2) references foreign_table(id);```-</TabsPanel></Tabs>### Delete a table--<TabsdefaultActiveId="sql"groupId="reference/postgres"@@ -155,7 +131,6 @@ alter table table_namedelete table if exists table_name;```-</TabsPanel>-</Tabs>\ No newline at end of file+</Tabs>diff --git a/apps/docs/docs/reference/realtime/release-notes.mdx b/apps/docs/docs/reference/realtime/release-notes.mdxindex b402b0d2708..f98e00eab03 100644--- a/apps/docs/docs/reference/realtime/release-notes.mdx+++ b/apps/docs/docs/reference/realtime/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notes---diff --git a/apps/docs/docs/reference/storage/release-notes.mdx b/apps/docs/docs/reference/storage/release-notes.mdxindex 52c333f12fb..dfe290d83d3 100644--- a/apps/docs/docs/reference/storage/release-notes.mdx+++ b/apps/docs/docs/reference/storage/release-notes.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: release-notestitle: Release Notes---diff --git a/apps/docs/docs/support.mdx b/apps/docs/docs/support.mdxindex 2a0bf4f01dd..e4ede2f14b3 100644--- a/apps/docs/docs/support.mdx+++ b/apps/docs/docs/support.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: supporttitle: Supportdescription: Supabase Supportdiff --git a/apps/docs/generator/legacy/components/Page.ts b/apps/docs/generator/legacy/components/Page.tsindex 1a2ef1a253d..a093b3b8bc5 100644--- a/apps/docs/generator/legacy/components/Page.ts+++ b/apps/docs/generator/legacy/components/Page.ts@@ -26,7 +26,9 @@ const Page = ({errors = '',}: PageParmas) =>`----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: ${id}title: "${title}"slug: ${slug}diff --git a/apps/docs/generator/templates/ApiTemplate.ts b/apps/docs/generator/templates/ApiTemplate.tsindex e4b7c565e93..83c650da3d0 100644--- a/apps/docs/generator/templates/ApiTemplate.ts+++ b/apps/docs/generator/templates/ApiTemplate.ts@@ -1,5 +1,7 @@const template = `----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: usageslug: /usagetitle: Usagediff --git a/apps/docs/generator/templates/CliTemplate.ts b/apps/docs/generator/templates/CliTemplate.tsindex 0904e47fe37..04d4a2551f7 100644--- a/apps/docs/generator/templates/CliTemplate.ts+++ b/apps/docs/generator/templates/CliTemplate.ts@@ -1,5 +1,7 @@const template = `----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: usageslug: /usagetitle: Usagediff --git a/apps/docs/generator/templates/ConfigTemplate.ts b/apps/docs/generator/templates/ConfigTemplate.tsindex 5958218077f..9bfa1a8db93 100644--- a/apps/docs/generator/templates/ConfigTemplate.ts+++ b/apps/docs/generator/templates/ConfigTemplate.ts@@ -1,5 +1,7 @@const template = `----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: configslug: /configtitle: Configurationdiff --git a/apps/docs/generator/templates/SdkTemplate.ts b/apps/docs/generator/templates/SdkTemplate.tsindex 4d8b7c5f63e..f0e11f686df 100644--- a/apps/docs/generator/templates/SdkTemplate.ts+++ b/apps/docs/generator/templates/SdkTemplate.ts@@ -1,5 +1,7 @@const template = `----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: usagetitle: Usagetoc_max_heading_level: 2diff --git a/apps/docs/docs/architecture.mdx b/apps/docs/pages/architecture.mdxsimilarity index 96%rename from apps/docs/docs/architecture.mdxrename to apps/docs/pages/architecture.mdxindex 57510a2789e..91048898791 100644--- a/apps/docs/docs/architecture.mdx+++ b/apps/docs/pages/architecture.mdx@@ -1,8 +1,10 @@-----id: architecture-title: Architecture-description: 'Supabase design and architecture'----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ id: 'architecture',+ title: 'Architecture',+ description: 'Supabase design and architecture',+}Supabase is open source. We choose open source tools which are scalable and make them simple to use.@@ -154,3 +156,7 @@ As the profile of a developer changes over time, Supabase will continue to evolvSupabase supports existing tools and communities wherever possible. Supabase is more like a "community of communities" - each tool typically has its own communitywhich we work with.Open source is something we approach [collaboratively](https://supabase.com/blog/supabase-series-b#giving-back): we employ maintainers, sponsor projects, invest in businesses, and develop our own open source tools.++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/pages/guides/features.mdx b/apps/docs/pages/features.mdxsimilarity index 95%rename from apps/docs/pages/guides/features.mdxrename to apps/docs/pages/features.mdxindex 3267fa32ced..06152162e48 100755--- a/apps/docs/pages/guides/features.mdx+++ b/apps/docs/pages/features.mdx@@ -1,8 +1,10 @@-----id: features-title: Features-description: 'Supabase features'----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ id: 'features',+ title: 'Features',+ description: 'Supabase features',+}This is a non-exhaustive list of features that Supabase provides for every project.@@ -170,3 +172,7 @@ Both Postgres and the Supabase Platform are production-ready. Some tools we offe| CLI | | `beta` || Client Library: JavaScript | | `GA` || Client Library: Dart | | `beta` |++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/pages/guides/api.mdx b/apps/docs/pages/guides/api.mdxindex 9896a65128b..7f5d40e6b75 100644--- a/apps/docs/pages/guides/api.mdx+++ b/apps/docs/pages/guides/api.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: apititle: Serverless APIsdescription: Auto-generating and Realtime APIs.diff --git a/apps/docs/pages/guides/auth.mdx b/apps/docs/pages/guides/auth.mdxindex 1d60ab88fbb..f501ed694ec 100644--- a/apps/docs/pages/guides/auth.mdx+++ b/apps/docs/pages/guides/auth.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: authtitle: Authdescription: Use Supabase to Authenticate and Authorize your users.diff --git a/apps/docs/pages/guides/auth/auth-apple.mdx b/apps/docs/pages/guides/auth/auth-apple.mdxindex 5f1030a2529..5db9ddceccc 100644--- a/apps/docs/pages/guides/auth/auth-apple.mdx+++ b/apps/docs/pages/guides/auth/auth-apple.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-appletitle: 'Login with Apple'description: Add Apple OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-azure.mdx b/apps/docs/pages/guides/auth/auth-azure.mdxindex bb1d1ed212a..ffb36a40f14 100644--- a/apps/docs/pages/guides/auth/auth-azure.mdx+++ b/apps/docs/pages/guides/auth/auth-azure.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-azuretitle: 'Login with Azure'description: Add Azure OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-bitbucket.mdx b/apps/docs/pages/guides/auth/auth-bitbucket.mdxindex 2a3c37af2c9..d106616d2c2 100644--- a/apps/docs/pages/guides/auth/auth-bitbucket.mdx+++ b/apps/docs/pages/guides/auth/auth-bitbucket.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-bitbuckettitle: 'Login with Bitbucket'description: Add Bitbucket OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-captcha.mdx b/apps/docs/pages/guides/auth/auth-captcha.mdxindex 225c899d614..12e8abee498 100644--- a/apps/docs/pages/guides/auth/auth-captcha.mdx+++ b/apps/docs/pages/guides/auth/auth-captcha.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-captchatitle: 'Enable Captcha Protection'description: Add Captcha Protection to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-discord.mdx b/apps/docs/pages/guides/auth/auth-discord.mdxindex 0707d391610..0495b116622 100644--- a/apps/docs/pages/guides/auth/auth-discord.mdx+++ b/apps/docs/pages/guides/auth/auth-discord.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-discordtitle: 'Login with Discord'description: Add Discord OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-email.mdx b/apps/docs/pages/guides/auth/auth-email.mdxindex d3bd96a3d8f..4ccbf3d03c4 100644--- a/apps/docs/pages/guides/auth/auth-email.mdx+++ b/apps/docs/pages/guides/auth/auth-email.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-emailtitle: 'Login With Email'description: Use Supabase to Authenticate and Authorize your users using email.diff --git a/apps/docs/pages/guides/auth/auth-facebook.mdx b/apps/docs/pages/guides/auth/auth-facebook.mdxindex 472e1fa21ef..30c4f023d11 100644--- a/apps/docs/pages/guides/auth/auth-facebook.mdx+++ b/apps/docs/pages/guides/auth/auth-facebook.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-facebooktitle: 'Login with Facebook'description: Add Facebook OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-github.mdx b/apps/docs/pages/guides/auth/auth-github.mdxindex 493a73123a3..f3ba6a9748a 100644--- a/apps/docs/pages/guides/auth/auth-github.mdx+++ b/apps/docs/pages/guides/auth/auth-github.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-githubtitle: 'Login with GitHub'description: Add GitHub OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-gitlab.mdx b/apps/docs/pages/guides/auth/auth-gitlab.mdxindex 7942bfd6cfd..94ddfa35096 100644--- a/apps/docs/pages/guides/auth/auth-gitlab.mdx+++ b/apps/docs/pages/guides/auth/auth-gitlab.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-gitlabtitle: 'Login with GitLab'description: Add GitLab OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-google.mdx b/apps/docs/pages/guides/auth/auth-google.mdxindex 90777b39a6b..2bb4bd84588 100644--- a/apps/docs/pages/guides/auth/auth-google.mdx+++ b/apps/docs/pages/guides/auth/auth-google.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-googletitle: 'Login with Google'description: Add Google OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-helpers.mdx b/apps/docs/pages/guides/auth/auth-helpers.mdxindex bc797ec1896..cab69abcc74 100644--- a/apps/docs/pages/guides/auth/auth-helpers.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: indextitle: Auth Helpersdescription: A collection of framework-specific Auth utilities for working with Supabase.diff --git a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdxindex 14e94ea0170..7c0801dae49 100644--- a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-uititle: Auth UIdescription: A prebuilt, customizable React component for authenticating users.diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdxindex 581c6ec5f37..4583957caa7 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: nextjstitle: Supabase Auth with Next.jsdescription: Authentication helpers for Next.js API routes, middleware, and SSR.diff --git a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx b/apps/docs/pages/guides/auth/auth-helpers/remix.mdxindex 5a644521a4f..f4f282d2e53 100644--- a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/remix.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: remixtitle: Supabase Auth with Remixdescription: Authentication helpers for loaders and actions in Remix.diff --git a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdxindex 7d5d25d3385..2fbbdf49a7d 100644--- a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: sveltekittitle: Supabase Auth with SvelteKitdescription: Convenience helpers for implementing user authentication in SvelteKit.@@ -53,21 +55,18 @@ PUBLIC_SUPABASE_ANON_KEY=your-anon-keyStart off by creating a `db.ts` file inside of the `src/lib` directory and instantiate the `supabaseClient`.```ts title=src/lib/db.ts-import { createClient } from '@supabase/auth-helpers-sveltekit';-import { env } from '$env/dynamic/public';+import { createClient } from '@supabase/auth-helpers-sveltekit'+import { env } from '$env/dynamic/public'// or use the static env// import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public';-export const supabaseClient = createClient(- env.PUBLIC_SUPABASE_URL,- env.PUBLIC_SUPABASE_ANON_KEY-);+export const supabaseClient = createClient(env.PUBLIC_SUPABASE_URL, env.PUBLIC_SUPABASE_ANON_KEY)```To make sure the client is initialized on the server and the client, include this file in `src/hooks.server.js` and `src/hooks.client.js`:```ts-import '$lib/db';+import '$lib/db'```### Synchronizing the page store@@ -76,21 +75,21 @@ Edit your `+layout.svelte` file and set up the client side.```html title=src/routes/+layout.svelte<script>- import { supabaseClient } from '$lib/db';- import { invalidate } from '$app/navigation';- import { onMount } from 'svelte';+ import { supabaseClient } from '$lib/db'+ import { invalidate } from '$app/navigation'+ import { onMount } from 'svelte'onMount(() => {const {- data: { subscription }+ data: { subscription },} = supabaseClient.auth.onAuthStateChange(() => {- invalidate('supabase:auth');- });+ invalidate('supabase:auth')+ })return () => {- subscription.unsubscribe();- };- });+ subscription.unsubscribe()+ }+ })</script><slot />@@ -105,26 +104,26 @@ If some data is not updated on signin/signout you can fall back to `invalidateAlTo make the session available to the UI (pages, layouts), pass the session in the root layout server load function:```ts title=src/routes/+layout.server.ts-import type { LayoutServerLoad } from './$types';-import { getServerSession } from '@supabase/auth-helpers-sveltekit';+import type { LayoutServerLoad } from './$types'+import { getServerSession } from '@supabase/auth-helpers-sveltekit'export const load: LayoutServerLoad = async (event) => {return {- session: await getServerSession(event)- };-};+ session: await getServerSession(event),+ }+}```In addition you can create a layout load function if you are using `invalidate('supabase:auth')`:```ts title=src/routes/+layout.ts-import type { LayoutLoad } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';+import type { LayoutLoad } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'export const load: LayoutLoad = async (event) => {- const { session } = await getSupabase(event);- return { session };-};+ const { session } = await getSupabase(event)+ return { session }+}```This results in fewer server calls as the client manages the session on its own.@@ -134,7 +133,6 @@ This results in fewer server calls as the client manages the session on its own.In order to get the most out of TypeScript and it´s intellisense, you should import our types into the `app.d.ts` type definition file that comes with your SvelteKit project.```ts title=src/app.d.ts-/// <reference types="@sveltejs/kit" />// See https://kit.svelte.dev/docs/types#app@@ -142,13 +140,13 @@ In order to get the most out of TypeScript and it´s intellisense, you should im// and what to do when importing typesdeclare namespace App {interface Supabase {- Database: import('./DatabaseDefinitions').Database;- SchemaName: 'public';+ Database: import('./DatabaseDefinitions').Database+ SchemaName: 'public'}// interface Locals {}interface PageData {- session: import('@supabase/supabase-js').Session | null;+ session: import('@supabase/supabase-js').Session | null}// interface Error {}// interface Platform {}@@ -161,7 +159,7 @@ You can now determine if a user is authenticated on the client-side by checking```html title=src/routes/+page.svelte<script>- import { page } from '$app/stores';+ import { page } from '$app/stores'</script>{#if !$page.data.session}@@ -178,17 +176,17 @@ For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to```html<script>- import { supabaseClient } from '$lib/db';- import { page } from '$app/stores';+ import { supabaseClient } from '$lib/db'+ import { page } from '$app/stores'- let loadedData = [];+ let loadedData = []async function loadData() {- const { data } = await supabaseClient.from('test').select('*').limit(20);- loadedData = data;+ const { data } = await supabaseClient.from('test').select('*').limit(20)+ loadedData = data}$: if ($page.data.session) {- loadData();+ loadData()}</script>@@ -203,8 +201,8 @@ For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to```html title=src/routes/profile/+page.svelte<script>/** @type {import('./$types').PageData} */- export let data;- $: ({ user, tableData } = data);+ export let data+ $: ({ user, tableData } = data)</script><div>Protected content for {user.email}</div>@@ -215,22 +213,22 @@ For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) toFor [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to work in a server environment, you need to use the `getSupabase` helper to check if the user is authenticated. The helper requires the `event` and returns `session` and `supabaseClient`:```ts title=src/routes/profile/+page.ts-import type { PageLoad } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { redirect } from '@sveltejs/kit';+import type { PageLoad } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { redirect } from '@sveltejs/kit'export const load: PageLoad = async (event) => {- const { session, supabaseClient } = await getSupabase(event);+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw redirect(303, '/');+ throw redirect(303, '/')}- const { data: tableData } = await supabaseClient.from('test').select('*');+ const { data: tableData } = await supabaseClient.from('test').select('*')return {user: session.user,- tableData- };-};+ tableData,+ }+}```## Protecting API routes@@ -238,19 +236,19 @@ export const load: PageLoad = async (event) => {Wrap an API Route to check that the user has a valid session. If they're not logged in the session is `null`.```ts title=src/routes/api/protected-route/+server.ts-import type { RequestHandler } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { json, redirect } from '@sveltejs/kit';+import type { RequestHandler } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { json, redirect } from '@sveltejs/kit'export const GET: RequestHandler = async (event) => {- const { session, supabaseClient } = await getSupabase(event);+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw redirect(303, '/');+ throw redirect(303, '/')}- const { data } = await supabaseClient.from('test').select('*');+ const { data } = await supabaseClient.from('test').select('*')- return json({ data });-};+ return json({ data })+}```If you visit `/api/protected-route` without a valid session cookie, you will get a 303 response.@@ -260,36 +258,36 @@ If you visit `/api/protected-route` without a valid session cookie, you will getWrap an Action to check that the user has a valid session. If they're not logged in the session is `null`.```ts title=src/routes/posts/+page.server.ts-import type { Actions } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { error, invalid } from '@sveltejs/kit';+import type { Actions } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { error, invalid } from '@sveltejs/kit'export const actions: Actions = {createPost: async (event) => {- const { request } = event;- const { session, supabaseClient } = await getSupabase(event);+ const { request } = event+ const { session, supabaseClient } = await getSupabase(event)if (!session) {// the user is not signed in- throw error(403, { message: 'Unauthorized' });+ throw error(403, { message: 'Unauthorized' })}// we are save, let the user create the post- const formData = await request.formData();- const content = formData.get('content');+ const formData = await request.formData()+ const content = formData.get('content')const { error: createPostError, data: newPost } = await supabaseClient.from('posts')- .insert({ content });+ .insert({ content })if (createPostError) {return invalid(500, {- supabaseErrorMessage: createPostError.message- });+ supabaseErrorMessage: createPostError.message,+ })}return {- newPost- };- }-};+ newPost,+ }+ },+}```If you try to submit a form with the action `?/createPost` without a valid session cookie, you will get a 403 error response.@@ -297,50 +295,50 @@ If you try to submit a form with the action `?/createPost` without a valid sessi## Saving and deleting the session```ts-import type { Actions } from './$types';-import { invalid, redirect } from '@sveltejs/kit';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';+import type { Actions } from './$types'+import { invalid, redirect } from '@sveltejs/kit'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'export const actions: Actions = {signin: async (event) => {- const { request, cookies, url } = event;- const { session, supabaseClient } = await getSupabase(event);- const formData = await request.formData();+ const { request, cookies, url } = event+ const { session, supabaseClient } = await getSupabase(event)+ const formData = await request.formData()- const email = formData.get('email') as string;- const password = formData.get('password') as string;+ const email = formData.get('email') as string+ const password = formData.get('password') as stringconst { error } = await supabaseClient.auth.signInWithPassword({email,- password- });+ password,+ })if (error) {if (error instanceof AuthApiError && error.status === 400) {return invalid(400, {error: 'Invalid credentials.',values: {- }- });+ email,+ },+ })}return invalid(500, {error: 'Server error. Try again later.',values: {- }- });+ email,+ },+ })}- throw redirect(303, '/dashboard');+ throw redirect(303, '/dashboard')},signout: async (event) => {- const { supabaseClient } = await getSupabase(event);- await supabaseClient.auth.signOut();- throw redirect(303, '/');- }-};+ const { supabaseClient } = await getSupabase(event)+ await supabaseClient.auth.signOut()+ throw redirect(303, '/')+ },+}```## Protecting multiple routes@@ -349,34 +347,31 @@ To avoid writing the same auth logic in every single route you can use the handlprotect multiple routes at once.```ts title=src/hooks.server.ts-import type { RequestHandler } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { redirect, error } from '@sveltejs/kit';+import type { RequestHandler } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { redirect, error } from '@sveltejs/kit'export const handle: Handle = async ({ event, resolve }) => {// protect requests to all routes that start with /protected-routesif (event.url.pathname.startsWith('/protected-routes')) {- const { session, supabaseClient } = await getSupabase(event);+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw redirect(303, '/');+ throw redirect(303, '/')}}// protect POST requests to all routes that start with /protected-posts- if (- event.url.pathname.startsWith('/protected-posts') &&- event.request.method === 'POST'- ) {- const { session, supabaseClient } = await getSupabase(event);+ if (event.url.pathname.startsWith('/protected-posts') && event.request.method === 'POST') {+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw error(303, '/');+ throw error(303, '/')}}- return resolve(event);-};+ return resolve(event)+}```## Migrate from 0.7.x to 0.8 {#migration}@@ -423,10 +418,7 @@ import { env } from '$env/dynamic/public'// import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public';-export const supabaseClient = createClient(- env.PUBLIC_SUPABASE_URL,- env.PUBLIC_SUPABASE_ANON_KEY-);+export const supabaseClient = createClient(env.PUBLIC_SUPABASE_URL, env.PUBLIC_SUPABASE_ANON_KEY)```</TabPanel>@@ -465,21 +457,21 @@ export const supabaseClient = createClient(```html title=src/routes/+layout.svelte<script>- import { supabaseClient } from '$lib/db';- import { invalidate } from '$app/navigation';- import { onMount } from 'svelte';+ import { supabaseClient } from '$lib/db'+ import { invalidate } from '$app/navigation'+ import { onMount } from 'svelte'onMount(() => {const {- data: { subscription }+ data: { subscription },} = supabaseClient.auth.onAuthStateChange(() => {- invalidate('supabase:auth');- });+ invalidate('supabase:auth')+ })return () => {- subscription.unsubscribe();- };- });+ subscription.unsubscribe()+ }+ })</script><slot />@@ -576,13 +568,13 @@ declare namespace App {// and what to do when importing typesdeclare namespace App {interface Supabase {- Database: import('./DatabaseDefinitions').Database;- SchemaName: 'public';+ Database: import('./DatabaseDefinitions').Database+ SchemaName: 'public'}// interface Locals {}interface PageData {- session: import('@supabase/auth-helpers-sveltekit').SupabaseSession;+ session: import('@supabase/auth-helpers-sveltekit').SupabaseSession}// interface Error {}// interface Platform {}@@ -638,8 +630,8 @@ export const load: PageLoad = withAuth(async ({ session, getSupabaseClient }) =>```html title=src/routes/protected-route/+page.svelte<script>/** @type {import('./$types').PageData} */- export let data;- $: ({ user, tableData } = data);+ export let data+ $: ({ user, tableData } = data)</script><div>Protected content for {user.email}</div>@@ -649,22 +641,22 @@ export const load: PageLoad = withAuth(async ({ session, getSupabaseClient }) =>```ts title=src/routes/protected-route/+page.ts// src/routes/profile/+page.ts-import type { PageLoad } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { redirect } from '@sveltejs/kit';+import type { PageLoad } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { redirect } from '@sveltejs/kit'export const load: PageLoad = async (event) => {- const { session, supabaseClient } = await getSupabase(event);+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw redirect(303, '/');+ throw redirect(303, '/')}- const { data: tableData } = await supabaseClient.from('test').select('*');+ const { data: tableData } = await supabaseClient.from('test').select('*')return {user: session.user,- tableData- };-};+ tableData,+ }+}```</TabPanel>@@ -681,45 +673,43 @@ export const load: PageLoad = async (event) => {<TabPanel id="older-0-7" label="0.7.x">```ts title=src/routes/api/protected-route/+server.ts-import type { RequestHandler } from './$types';-import { withAuth } from '@supabase/auth-helpers-sveltekit';-import { json, redirect } from '@sveltejs/kit';+import type { RequestHandler } from './$types'+import { withAuth } from '@supabase/auth-helpers-sveltekit'+import { json, redirect } from '@sveltejs/kit'interface TestTable {- id: string;- created_at: string;+ id: string+ created_at: string}export const GET: RequestHandler = withAuth(async ({ session, getSupabaseClient }) => {if (!session.user) {- throw redirect(303, '/');+ throw redirect(303, '/')}- const { data } = await getSupabaseClient()- .from<TestTable>('test')- .select('*');+ const { data } = await getSupabaseClient().from<TestTable>('test').select('*')- return json({ data });-});+ return json({ data })+})```</TabPanel><TabPanel id="0.8.0" label="0.8.0">```ts title=src/routes/api/protected-route/+server.ts-import type { RequestHandler } from './$types';-import { getSupabase } from '@supabase/auth-helpers-sveltekit';-import { json, redirect } from '@sveltejs/kit';+import type { RequestHandler } from './$types'+import { getSupabase } from '@supabase/auth-helpers-sveltekit'+import { json, redirect } from '@sveltejs/kit'export const GET: RequestHandler = async (event) => {- const { session, supabaseClient } = await getSupabase(event);+ const { session, supabaseClient } = await getSupabase(event)if (!session) {- throw redirect(303, '/');+ throw redirect(303, '/')}- const { data } = await supabaseClient.from('test').select('*');+ const { data } = await supabaseClient.from('test').select('*')- return json({ data });-};+ return json({ data })+}```</TabPanel>diff --git a/apps/docs/pages/guides/auth/auth-keycloak.mdx b/apps/docs/pages/guides/auth/auth-keycloak.mdxindex 51099a0653a..53e36b7c78e 100644--- a/apps/docs/pages/guides/auth/auth-keycloak.mdx+++ b/apps/docs/pages/guides/auth/auth-keycloak.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-keycloaktitle: 'Login with Keycloak'description: Add Keycloak OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-linkedin.mdx b/apps/docs/pages/guides/auth/auth-linkedin.mdxindex ac5feca9617..fe64077804e 100644--- a/apps/docs/pages/guides/auth/auth-linkedin.mdx+++ b/apps/docs/pages/guides/auth/auth-linkedin.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-linkedintitle: 'Login with LinkedIn'description: Add LinkedIn OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-magic-link.mdx b/apps/docs/pages/guides/auth/auth-magic-link.mdxindex af4696fbca8..0c49f2d5775 100644--- a/apps/docs/pages/guides/auth/auth-magic-link.mdx+++ b/apps/docs/pages/guides/auth/auth-magic-link.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-magic-linktitle: 'Login With Magic Link'description: Use Supabase to authenticate and authorize your users using magic links.diff --git a/apps/docs/pages/guides/auth/auth-messagebird.mdx b/apps/docs/pages/guides/auth/auth-messagebird.mdxindex f545769ca13..5c6fa361f7f 100644--- a/apps/docs/pages/guides/auth/auth-messagebird.mdx+++ b/apps/docs/pages/guides/auth/auth-messagebird.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-messagebirdtitle: Phone Auth with MessageBirddescription: How to set up and use Mobile OTP with MessageBird and Supabase.diff --git a/apps/docs/pages/guides/auth/auth-mfa.mdx b/apps/docs/pages/guides/auth/auth-mfa.mdxindex 83c6af27cd8..fd7995e8da2 100644--- a/apps/docs/pages/guides/auth/auth-mfa.mdx+++ b/apps/docs/pages/guides/auth/auth-mfa.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-mfatitle: 'Multi-Factor Authentication'description: Add an additional layer of security to your apps with Supabase Auth multi-factor authentication.@@ -26,9 +28,9 @@ prone to malicious account takeovers. These can be prevented withMFA because they require the user to provide proof ofboth of these:-- Something they know.+- Something they know.Password, or access to a social-login account.-- Something they have.+- Something they have.Access to an authenticator app (a.k.a. TOTP), mobile phone or recovery code.## Overview@@ -39,9 +41,9 @@ authenticator app in the control of users.Applications using MFA require two important flows:-1. **Enrollment flow.**+1. **Enrollment flow.**This lets users set up and control MFA in your app.-2. **Authentication flow.**+2. **Authentication flow.**This lets users sign in using any factors after the conventional login step.Supabase Auth provides:@@ -78,11 +80,11 @@ Level](https://pages.nist.gov/800-63-3-Implementation-Resources/63B/AAL/), astandard measure about the assurance Supabase Auth has of the user's identityfor that particular session. There are two levels recognized today:-1. **Assurance Level 1: `aal1`**+1. **Assurance Level 1: `aal1`**Means that the user's identity was verified using a conventional login methodsuch as email+password, magic link, one-time password, phone auth or sociallogin.-2. **Assurance Level 2: `aal2`**+2. **Assurance Level 2: `aal2`**Means that the user's identity was additionally verified using at least onesecond factor, such as a TOTP code.@@ -95,15 +97,15 @@ for your application. JWTs without an `aal` claim are at the `aal1` level.Adding MFA to your app involves these three steps:-1. **Add enrollment flow.**+1. **Add enrollment flow.**You need to provide a UI within your app that your users will be able to set-upMFA in. You can add this right after sign-up, or as part of a separate flow inthe settings portion of your app.-2. **Add challenge step to login.**+2. **Add challenge step to login.**If a user has set-up MFA, your app's login flow needs to present a challengescreen to the user asking them to prove they have access to the additionalfactor.-3. **Enforce rules for MFA logins.**+3. **Enforce rules for MFA logins.**Once your users have a way to enroll and log in with MFA, you need to enforceauthorization rules across your app: on the frontend, backend, API servers orRow-Level Security policies.@@ -113,12 +115,12 @@ Adding MFA to your app involves these three steps:An enrollment flow provides a UI for users to set up additional authentication factors.Most applications add the enrollment flow in two places within their app:-1. Right after login or sign up.+1. Right after login or sign up.This lets users quickly set up MFA immediately after they log in or create anaccount. We recommend encouraging all users to set up MFA if that makes sensefor your application. Many applications offer this as an opt-in step in aneffort to reduce onboarding friction.-2. From within a settings page.+2. From within a settings page.Allows users to set up, disable or modify their MFA settings.We recommend building one generic flow that you can reuse in both cases with@@ -126,15 +128,15 @@ minor modifications.Enrolling a factor for use with MFA takes three steps:-1. Call `supabase.auth.mfa.enroll()`.+1. Call `supabase.auth.mfa.enroll()`.This method returns a QR code and a secret. Display the QRcode to the user and ask them to scan it with their authenticator application.If they are unable to scan the QR code, show the secret in plain text whichthey can type or paste into their authenticator app.-2. Calling the `supabase.auth.mfa.challenge()` API.+2. Calling the `supabase.auth.mfa.challenge()` API.This prepares Supabase Auth to accept a verification code from the userand returns a challenge ID.-3. Calling the `supabase.auth.mfa.verify()` API.+3. Calling the `supabase.auth.mfa.verify()` API.This verifies that the user has indeed added the secret from step (1) intotheir app and is working correctly. If the verification succeeds, the factorimmediately becomes active for the user account. If not, you should repeat@@ -400,15 +402,15 @@ application's database, APIs and server-side rendering.Depending on your application's needs, there are three ways you can choose toenforce MFA.-1. **Enforce for all users (new and existing).**- Any user account will have to enroll MFA to continue using your app.+1. **Enforce for all users (new and existing).**+ Any user account will have to enroll MFA to continue using your app.The application will not allow access without going through MFA first.-2. **Enforce for new users only.**+2. **Enforce for new users only.**Only new users will be forced to enroll MFA, while old users will be encouraged- to do so.+ to do so.The application will not allow access for new users without going through MFAfirst.-3. **Enforce only for users that have opted-in.**+3. **Enforce only for users that have opted-in.**Users that want MFA can enroll in it and the application will not allow accesswithout going through MFA first.@@ -547,14 +549,14 @@ using Row Level Security policies will give you sufficient protection. In theevent that you have other APIs that you wish to protect, follow these generalguidelines:-1. **Use a good JWT verification and parsing library for your language.**+1. **Use a good JWT verification and parsing library for your language.**This will let you securely parse JWTs and extract their claims.2. **Retrieve the `aal` claim from the JWT and compare its value according to- your needs.**+ your needs.**If you've encountered an AAL level that can be increased, ask the user tocontinue the login process instead of logging them out.3. **Use the `https://<project-ref>.supabase.co/rest/v1/auth/factors` REST- endpoint to identify if the user has enrolled any MFA factors.**+ endpoint to identify if the user has enrolled any MFA factors.**Only `verified` factors should be acted upon.## Frequently asked questionsdiff --git a/apps/docs/pages/guides/auth/auth-notion.mdx b/apps/docs/pages/guides/auth/auth-notion.mdxindex 6f920495943..e70dfa3df35 100644--- a/apps/docs/pages/guides/auth/auth-notion.mdx+++ b/apps/docs/pages/guides/auth/auth-notion.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-notiontitle: 'Login with Notion'description: Add Notion OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-slack.mdx b/apps/docs/pages/guides/auth/auth-slack.mdxindex 0c8a9f3d228..9f465c345f1 100644--- a/apps/docs/pages/guides/auth/auth-slack.mdx+++ b/apps/docs/pages/guides/auth/auth-slack.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-slacktitle: 'Login with Slack'description: Add Slack OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-spotify.mdx b/apps/docs/pages/guides/auth/auth-spotify.mdxindex ed836ebba44..5d97ce9bb4d 100644--- a/apps/docs/pages/guides/auth/auth-spotify.mdx+++ b/apps/docs/pages/guides/auth/auth-spotify.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-spotifytitle: 'Login with Spotify'description: Add Spotify OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-twilio.mdx b/apps/docs/pages/guides/auth/auth-twilio.mdxindex 6868eca32ec..b2cb6ce7b65 100644--- a/apps/docs/pages/guides/auth/auth-twilio.mdx+++ b/apps/docs/pages/guides/auth/auth-twilio.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-twiliotitle: Phone Auth with Twiliodescription: How to set up and use Mobile OTP with Twilio and Supabase.diff --git a/apps/docs/pages/guides/auth/auth-twitch.mdx b/apps/docs/pages/guides/auth/auth-twitch.mdxindex 3be91d87aee..0dcd5eacb77 100644--- a/apps/docs/pages/guides/auth/auth-twitch.mdx+++ b/apps/docs/pages/guides/auth/auth-twitch.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-twitchtitle: 'Login with Twitch'description: Add Twitch OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-twitter.mdx b/apps/docs/pages/guides/auth/auth-twitter.mdxindex e385d49cc5e..a8619e21494 100644--- a/apps/docs/pages/guides/auth/auth-twitter.mdx+++ b/apps/docs/pages/guides/auth/auth-twitter.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-twittertitle: 'Login with Twitter'description: Add Twitter OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-vonage.mdx b/apps/docs/pages/guides/auth/auth-vonage.mdxindex 27b01e29092..99975f0696d 100644--- a/apps/docs/pages/guides/auth/auth-vonage.mdx+++ b/apps/docs/pages/guides/auth/auth-vonage.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-vonagetitle: Phone Auth with Vonagedescription: How to set up and use Mobile OTP with Vonage and Supabase.diff --git a/apps/docs/pages/guides/auth/auth-workos.mdx b/apps/docs/pages/guides/auth/auth-workos.mdxindex 110e707652e..f92db6d708f 100644--- a/apps/docs/pages/guides/auth/auth-workos.mdx+++ b/apps/docs/pages/guides/auth/auth-workos.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-workostitle: 'Login with WorkOS'description: Add WorkOS OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/auth-zoom.mdx b/apps/docs/pages/guides/auth/auth-zoom.mdxindex 897df230e41..f76d206fe76 100644--- a/apps/docs/pages/guides/auth/auth-zoom.mdx+++ b/apps/docs/pages/guides/auth/auth-zoom.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth-zoomtitle: 'Login with Zoom'description: Add Zoom OAuth to your Supabase projectdiff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdxindex ee6461042f6..51106df49ae 100644--- a/apps/docs/pages/guides/auth/managing-user-data.mdx+++ b/apps/docs/pages/guides/auth/managing-user-data.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: managing-user-datatitle: Managing User Datadescription: Securing your user data with Row Level Security.@@ -59,9 +61,7 @@ The nice thing about this pattern? We can now query this table via the API and w```js// This will return nothing while the user is logged out-const { data } = await supabase- .from('profiles')- .select('id, username, avatar_url, website')+const { data } = await supabase.from('profiles').select('id, username, avatar_url, website')// After the user is logged in, this will only return// the logged-in user's data - in this case a single rowdiff --git a/apps/docs/pages/guides/auth/row-level-security.mdx b/apps/docs/pages/guides/auth/row-level-security.mdxindex 376660938f9..e54fd669a64 100644--- a/apps/docs/pages/guides/auth/row-level-security.mdx+++ b/apps/docs/pages/guides/auth/row-level-security.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: row-level-securitytitle: Row Level Securitydescription: Secure your data using Postgres Row Level Security.diff --git a/apps/docs/pages/guides/auth/server-side-rendering.mdx b/apps/docs/pages/guides/auth/server-side-rendering.mdxindex c80ff1ce825..e154309bf5c 100644--- a/apps/docs/pages/guides/auth/server-side-rendering.mdx+++ b/apps/docs/pages/guides/auth/server-side-rendering.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: server-side-renderingtitle: Server-Side Renderingdescription: Render pages with user information on the server.diff --git a/apps/docs/pages/guides/cli.mdx b/apps/docs/pages/guides/cli.mdxindex 337fa5b42c0..db50c4e50fe 100644--- a/apps/docs/pages/guides/cli.mdx+++ b/apps/docs/pages/guides/cli.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: clititle: Supabase CLIdescription: The Supabase CLI provides tools to develop your project locally and deploy to the Supabase Platform.@@ -20,6 +22,7 @@ You can also use the CLI to manage your Supabase projects, handle database migra<TabPanel id="npm" label="npm">Install the CLI as dev dependency via [npm](https://www.npmjs.com/package/supabase):+```shnpm install supabase --save-dev```diff --git a/apps/docs/pages/guides/cli/local-development.mdx b/apps/docs/pages/guides/cli/local-development.mdxindex 542df07d559..23ebadee78f 100644--- a/apps/docs/pages/guides/cli/local-development.mdx+++ b/apps/docs/pages/guides/cli/local-development.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: local-developmenttitle: Local Developmentdescription: How to use Supabase on your local development machine.diff --git a/apps/docs/pages/guides/cli/managing-environments.mdx b/apps/docs/pages/guides/cli/managing-environments.mdxindex c63b83ab093..e5f078d50b2 100644--- a/apps/docs/pages/guides/cli/managing-environments.mdx+++ b/apps/docs/pages/guides/cli/managing-environments.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: managing-environmentstitle: Managing Environmentsdescription: How to deploy Supabase schema changes with a CI / CD pipeline.diff --git a/apps/docs/pages/guides/database.mdx b/apps/docs/pages/guides/database.mdxindex ace142b022a..1ef69fc9bc9 100644--- a/apps/docs/pages/guides/database.mdx+++ b/apps/docs/pages/guides/database.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: databasetitle: Databasedescription: Use Supabase to manage your data.diff --git a/apps/docs/pages/guides/database/arrays.mdx b/apps/docs/pages/guides/database/arrays.mdxindex 9065f762952..7f5db6a7ab1 100644--- a/apps/docs/pages/guides/database/arrays.mdx+++ b/apps/docs/pages/guides/database/arrays.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: arraystitle: 'Working With Arrays'description: How to use arrays in PostgreSQL and the Supabase API.diff --git a/apps/docs/pages/guides/database/connecting-to-postgres.mdx b/apps/docs/pages/guides/database/connecting-to-postgres.mdxindex f87a954de6d..bcccabd6a33 100644--- a/apps/docs/pages/guides/database/connecting-to-postgres.mdx+++ b/apps/docs/pages/guides/database/connecting-to-postgres.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: connecting-to-postgrestitle: 'Database Connections'description: There are various ways to connect to your Postgres database.@@ -121,7 +123,7 @@ SSL enabled as illustrated below:psql "sslmode=verify-full sslrootcert=$HOME/Downloads/prod-ca-2021.cer host=db.abcdefghijklm.supabase.co dbname=postgres user=postgres"```-2. With `pgAdmin`+2. With `pgAdmin`a. Register a new Postgres serverdiff --git a/apps/docs/pages/guides/database/extensions.mdx b/apps/docs/pages/guides/database/extensions.mdxindex fe844b7da8a..b3dd9fc3646 100644--- a/apps/docs/pages/guides/database/extensions.mdx+++ b/apps/docs/pages/guides/database/extensions.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: extensionstitle: Overviewdescription: Using Postgres extensions.diff --git a/apps/docs/pages/guides/database/extensions/http.mdx b/apps/docs/pages/guides/database/extensions/http.mdxindex 13c4718aba7..bdcc83f2a2c 100644--- a/apps/docs/pages/guides/database/extensions/http.mdx+++ b/apps/docs/pages/guides/database/extensions/http.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: httptitle: 'http: RESTful Client'description: An HTTP Client for PostgreSQL Functions.diff --git a/apps/docs/pages/guides/database/extensions/pgcron.mdx b/apps/docs/pages/guides/database/extensions/pgcron.mdxindex 7cdf943bdf0..6a182215bc6 100644--- a/apps/docs/pages/guides/database/extensions/pgcron.mdx+++ b/apps/docs/pages/guides/database/extensions/pgcron.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: pgcrontitle: 'pg_cron: Job Scheduling'description: 'pgnet: a simple cron-based job scheduler for PostgreSQL that runs inside the database.'diff --git a/apps/docs/pages/guides/database/extensions/pgnet.mdx b/apps/docs/pages/guides/database/extensions/pgnet.mdxindex 58fb475be27..8d478ba976b 100644--- a/apps/docs/pages/guides/database/extensions/pgnet.mdx+++ b/apps/docs/pages/guides/database/extensions/pgnet.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: pgnettitle: 'pg_net: Async Networking'description: 'pg_net: an async networking extension for PostgreSQL.'diff --git a/apps/docs/pages/guides/database/extensions/pgtap.mdx b/apps/docs/pages/guides/database/extensions/pgtap.mdxindex 7e6b439dc3e..cb86df169c2 100644--- a/apps/docs/pages/guides/database/extensions/pgtap.mdx+++ b/apps/docs/pages/guides/database/extensions/pgtap.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: pgtaptitle: 'pgTAP: Unit Testing'description: Unit testing in PostgreSQL.diff --git a/apps/docs/pages/guides/database/extensions/plv8.mdx b/apps/docs/pages/guides/database/extensions/plv8.mdxindex 5e13b5a081a..1d6f3fdbfd2 100644--- a/apps/docs/pages/guides/database/extensions/plv8.mdx+++ b/apps/docs/pages/guides/database/extensions/plv8.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: plv8title: 'plv8: JavaScript Language'description: JavaScript language for PostgreSQL.diff --git a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdxindex bb66b8c33c2..766fd284b53 100644--- a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx+++ b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: uuid-ossptitle: 'uuid-ossp: Unique Identifiers'description: A UUID generator for PostgreSQL.diff --git a/apps/docs/pages/guides/database/full-text-search.mdx b/apps/docs/pages/guides/database/full-text-search.mdxindex 0f597589e5d..c2347436985 100644--- a/apps/docs/pages/guides/database/full-text-search.mdx+++ b/apps/docs/pages/guides/database/full-text-search.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: full-text-searchtitle: 'Full Text Search'description: How to use full text search in PostgreSQL.diff --git a/apps/docs/pages/guides/database/functions.mdx b/apps/docs/pages/guides/database/functions.mdxindex 097e3c0ac98..467d653b535 100644--- a/apps/docs/pages/guides/database/functions.mdx+++ b/apps/docs/pages/guides/database/functions.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: functionstitle: Database Functionsdescription: Creating and using Postgres functions.diff --git a/apps/docs/pages/guides/database/json.mdx b/apps/docs/pages/guides/database/json.mdxindex 11dc1963581..e5615c92d62 100644--- a/apps/docs/pages/guides/database/json.mdx+++ b/apps/docs/pages/guides/database/json.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: jsontitle: 'JSON'description: Using the JSON data type in PostgreSQL.diff --git a/apps/docs/pages/guides/database/managing-passwords.mdx b/apps/docs/pages/guides/database/managing-passwords.mdxindex e100a41ee4d..b87e2e274ee 100644--- a/apps/docs/pages/guides/database/managing-passwords.mdx+++ b/apps/docs/pages/guides/database/managing-passwords.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: managing-passwordstitle: 'Passwords'description: How to change your PostgreSQL database password.diff --git a/apps/docs/pages/guides/database/managing-timezones.mdx b/apps/docs/pages/guides/database/managing-timezones.mdxindex 8b4cf4bde75..96a9d5be05a 100644--- a/apps/docs/pages/guides/database/managing-timezones.mdx+++ b/apps/docs/pages/guides/database/managing-timezones.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: managing-timezonestitle: 'Timezones'slug: managing-timezonesdiff --git a/apps/docs/pages/guides/database/replication.mdx b/apps/docs/pages/guides/database/replication.mdxindex e78ec795f81..d2c442c36a8 100644--- a/apps/docs/pages/guides/database/replication.mdx+++ b/apps/docs/pages/guides/database/replication.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: replicationtitle: 'Replication'slug: replication@@ -22,12 +24,7 @@ Replication is done through _publications_, a method of choosing which changes t4. Control which tables broadcast changes by selecting **Source** and toggling each table.<video width="99%" muted playsInline controls="true">- <source- src="/docs/videos/api/api-realtime.mp4"- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-realtime.mp4" type="video/mp4" muted playsInline /></video>## Create a publicationdiff --git a/apps/docs/pages/guides/database/sql-to-api.mdx b/apps/docs/pages/guides/database/sql-to-api.mdxindex 298ece3417d..35e2db2059e 100644--- a/apps/docs/pages/guides/database/sql-to-api.mdx+++ b/apps/docs/pages/guides/database/sql-to-api.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: sql-to-apititle: 'Converting SQL to JavaScript API'description: Implementing common SQL patterns in the JavaScript APIdiff --git a/apps/docs/pages/guides/database/tables.mdx b/apps/docs/pages/guides/database/tables.mdxindex e6b46ce49d8..5f69c8e3feb 100644--- a/apps/docs/pages/guides/database/tables.mdx+++ b/apps/docs/pages/guides/database/tables.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: tablestitle: Tables and Datadescription: Creating and using Postgres tables.diff --git a/apps/docs/pages/guides/database/testing.mdx b/apps/docs/pages/guides/database/testing.mdxindex 1301042e379..bcd7a55852e 100644--- a/apps/docs/pages/guides/database/testing.mdx+++ b/apps/docs/pages/guides/database/testing.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: testingtitle: Testing Your Databasedescription: Test your database schema, tables, functions, and policies.diff --git a/apps/docs/pages/guides/database/timeouts.mdx b/apps/docs/pages/guides/database/timeouts.mdxindex 2436c5dc0db..f3bef4791d5 100644--- a/apps/docs/pages/guides/database/timeouts.mdx+++ b/apps/docs/pages/guides/database/timeouts.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: timeoutstitle: Timeoutsdescription: Timeouts and optimizationdiff --git a/apps/docs/pages/guides/database/webhooks.mdx b/apps/docs/pages/guides/database/webhooks.mdxindex d7c19aa2cf7..b7219ba761e 100644--- a/apps/docs/pages/guides/database/webhooks.mdx+++ b/apps/docs/pages/guides/database/webhooks.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: webhookstitle: 'Database Webhooks'description: Trigger external payloads on database events.diff --git a/apps/docs/pages/guides/examples.mdx b/apps/docs/pages/guides/examples.mdxindex 0bc057bc305..7d496926120 100644--- a/apps/docs/pages/guides/examples.mdx+++ b/apps/docs/pages/guides/examples.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: examplestitle: Examples and Resourcesdescription: 'Examples you can use to get started with Supabase'diff --git a/apps/docs/pages/guides/functions.mdx b/apps/docs/pages/guides/functions.mdxindex 5d8982b94e4..2c24c690a38 100644--- a/apps/docs/pages/guides/functions.mdx+++ b/apps/docs/pages/guides/functions.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: functionstitle: Edge Functionsdescription: 'Globally distributed TypeScript functions.'diff --git a/apps/docs/pages/guides/functions/auth.mdx b/apps/docs/pages/guides/functions/auth.mdxindex 6918f10c040..515dfbf7b7a 100644--- a/apps/docs/pages/guides/functions/auth.mdx+++ b/apps/docs/pages/guides/functions/auth.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: authtitle: Authdescription: Supabase Edge Functions and Auth.diff --git a/apps/docs/pages/guides/functions/cicd-workflow.mdx b/apps/docs/pages/guides/functions/cicd-workflow.mdxindex d876604da88..8c6934133a7 100644--- a/apps/docs/pages/guides/functions/cicd-workflow.mdx+++ b/apps/docs/pages/guides/functions/cicd-workflow.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: cicd-workflowtitle: CI / CD Workflowdescription: How to deploy Supabase Edge Functions with a CI / CD pipeline.diff --git a/apps/docs/pages/guides/functions/examples.mdx b/apps/docs/pages/guides/functions/examples.mdxindex 12b0f47484d..a6170398115 100644--- a/apps/docs/pages/guides/functions/examples.mdx+++ b/apps/docs/pages/guides/functions/examples.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: examplestitle: Examplesdescription: Useful Supabase Edge Functions Examplesdiff --git a/apps/docs/pages/guides/hosting/docker.mdx b/apps/docs/pages/guides/hosting/docker.mdxindex 682cffd8d4f..9ac65d27c19 100644--- a/apps/docs/pages/guides/hosting/docker.mdx+++ b/apps/docs/pages/guides/hosting/docker.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: dockertitle: Self-hosting with Dockerdescription: How to configure and deploy Supabase.diff --git a/apps/docs/pages/guides/hosting/overview.mdx b/apps/docs/pages/guides/hosting/overview.mdxindex 00c9a6b9b14..d148264bd44 100644--- a/apps/docs/pages/guides/hosting/overview.mdx+++ b/apps/docs/pages/guides/hosting/overview.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: overviewtitle: Self Hostingsidebar_label: Overviewdiff --git a/apps/docs/pages/guides/hosting/platform.mdx b/apps/docs/pages/guides/hosting/platform.mdxindex a8c24cba66f..0a46248499a 100644--- a/apps/docs/pages/guides/hosting/platform.mdx+++ b/apps/docs/pages/guides/hosting/platform.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: platformtitle: Supabase Platformdescription: Getting started with the Supabase Platform.@@ -29,12 +31,7 @@ Organizations are a way to group your projects. Each organization can be configuYou can invite your team members into your organizations to collaborate on projects.<video width="99%" muted playsInline controls="true">- <source- src="/docs/videos/invite-team.mp4"- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/invite-team.mp4" type="video/mp4" muted playsInline /></video>You can also assign roles to your team members with different access levels. The table below shows the corresponding permissions for each available role in the Dashboard.diff --git a/apps/docs/pages/guides/integrations/appsmith.mdx b/apps/docs/pages/guides/integrations/appsmith.mdxindex 2d28b3e8118..7fd9e3b8711 100644--- a/apps/docs/pages/guides/integrations/appsmith.mdx+++ b/apps/docs/pages/guides/integrations/appsmith.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: appsmithtitle: 'Appsmith'description: 'Get started with Supabase and Appsmith, an open-source framework for building internal tools.'diff --git a/apps/docs/pages/guides/integrations/auth0.mdx b/apps/docs/pages/guides/integrations/auth0.mdxindex c4ec569577a..5e949ff119b 100644--- a/apps/docs/pages/guides/integrations/auth0.mdx+++ b/apps/docs/pages/guides/integrations/auth0.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: auth0title: 'Auth0'description: 'Swap out Supabase authentication with Auth0. Let Auth0 handle tokens and signing users in and out, while Supabase enforces authorization policies with Row Level Security (RLS).'diff --git a/apps/docs/pages/guides/integrations/authsignal.mdx b/apps/docs/pages/guides/integrations/authsignal.mdxindex c98930959f3..4bffbb103c4 100644--- a/apps/docs/pages/guides/integrations/authsignal.mdx+++ b/apps/docs/pages/guides/integrations/authsignal.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: authsignaltitle: 'Authsignal'description: 'Add an MFA step after sign-in. Use Supabase Auth to sign in with email and password and Authsignal to initiate an Authenticator App challenge.'diff --git a/apps/docs/pages/guides/integrations/clerk.mdx b/apps/docs/pages/guides/integrations/clerk.mdxindex e766660c74f..f8639c52a00 100644--- a/apps/docs/pages/guides/integrations/clerk.mdx+++ b/apps/docs/pages/guides/integrations/clerk.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: clerktitle: 'Clerk'description: 'This guide explains how to connect your Supabase database with Clerk, a powerful authentication provider built for the modern web.'diff --git a/apps/docs/pages/guides/integrations/dashibase.mdx b/apps/docs/pages/guides/integrations/dashibase.mdxindex fb96230bcd9..d51acbd812c 100644--- a/apps/docs/pages/guides/integrations/dashibase.mdx+++ b/apps/docs/pages/guides/integrations/dashibase.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: dashibasetitle: 'Dashibase'description: 'Create an internal CRUD dashboard with Supabase and Dashibase in 15 mins.'diff --git a/apps/docs/pages/guides/integrations/dhiwise.mdx b/apps/docs/pages/guides/integrations/dhiwise.mdxindex 87fbf20e938..172ff8f67b2 100644--- a/apps/docs/pages/guides/integrations/dhiwise.mdx+++ b/apps/docs/pages/guides/integrations/dhiwise.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: dhiwisetitle: 'DhiWise'description: 'Get started with Supabase and DhiWise. Convert your Figma designs into Flutter apps, store data, and authenticate your users'diff --git a/apps/docs/pages/guides/integrations/directus.mdx b/apps/docs/pages/guides/integrations/directus.mdxindex 4a327340d1d..4fc5bc5c7ae 100644--- a/apps/docs/pages/guides/integrations/directus.mdx+++ b/apps/docs/pages/guides/integrations/directus.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: directustitle: 'Directus'description: 'In this guide, we will show you how to create a Supabase project, install the Directus platform locally and configure the two to connect.'diff --git a/apps/docs/pages/guides/integrations/draftbit.mdx b/apps/docs/pages/guides/integrations/draftbit.mdxindex adaae47333b..ec5a417c6fb 100644--- a/apps/docs/pages/guides/integrations/draftbit.mdx+++ b/apps/docs/pages/guides/integrations/draftbit.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: draftbittitle: 'Draftbit'description: 'Connect your Supabase postgres database to your Low-code mobile app.'diff --git a/apps/docs/pages/guides/integrations/fezto.mdx b/apps/docs/pages/guides/integrations/fezto.mdxindex 1eb93afc4b7..c6b0f57b9b1 100644--- a/apps/docs/pages/guides/integrations/fezto.mdx+++ b/apps/docs/pages/guides/integrations/fezto.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: feztotitle: 'Frontend Zero to One'description: 'Create an app automatically from your Supabase Postgres using OpenAPI'diff --git a/apps/docs/pages/guides/integrations/integrations.mdx b/apps/docs/pages/guides/integrations/integrations.mdxindex 9fdf5c6fa2d..32560e68b35 100644--- a/apps/docs/pages/guides/integrations/integrations.mdx+++ b/apps/docs/pages/guides/integrations/integrations.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: integrationstitle: 'Supabase Marketplace'description: 'Integrations and Partners'@@ -24,11 +26,11 @@ Supabase provides several integration points:Integrations are assessed on the following criteria:-- **Business viability**+- **Business viability**While we welcome everyone to built an integration, we only list companies that are deemed to be long-term viable. This includes an official business registration and bank account, meaningful revenue, or Venture Capital backing. We require this criteria to ensure the health of the marketplace.-- **Compliance**+- **Compliance**Integrations should not infringe on the Supabase brand/trademark. In short, you cannot use "Supabase" in the name. As the listing appears on the Supabase domain, we don't want to mislead developers into thinking that an integration is an official product.-- **Service Level Agreements**+- **Service Level Agreements**All listings are required to have their own Terms and Conditions, Privacy Policy, and Acceptable Use Policy, and the company must have resources to meet their SLAs.-- **Maintainability**+- **Maintainability**All integrations are required to be maintained and functional with Supabase, and the company may be assessed on your ability to remain functional over a long time horizon.diff --git a/apps/docs/pages/guides/integrations/keyri.mdx b/apps/docs/pages/guides/integrations/keyri.mdxindex d0b44ce49b3..88832a46676 100644--- a/apps/docs/pages/guides/integrations/keyri.mdx+++ b/apps/docs/pages/guides/integrations/keyri.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: keyrititle: 'Keyri'description: 'QR authentication for an easy and flexible biometric solution across all platforms.'diff --git a/apps/docs/pages/guides/integrations/pgmustard.mdx b/apps/docs/pages/guides/integrations/pgmustard.mdxindex 4a463c11f07..820708c314c 100644--- a/apps/docs/pages/guides/integrations/pgmustard.mdx+++ b/apps/docs/pages/guides/integrations/pgmustard.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: pgmustardtitle: 'pgMustard'description: 'Troubleshoot slow queries on Supabase with pgMustard, a visualization tool that also gives advice.'diff --git a/apps/docs/pages/guides/integrations/plasmic.mdx b/apps/docs/pages/guides/integrations/plasmic.mdxindex a3396c73be8..05ebdaedb48 100644--- a/apps/docs/pages/guides/integrations/plasmic.mdx+++ b/apps/docs/pages/guides/integrations/plasmic.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: plasmictitle: 'Plasmic'description: 'Get started with Supabase and Plasmic, an open-source framework for building internal tools.'diff --git a/apps/docs/pages/guides/integrations/polyscale.mdx b/apps/docs/pages/guides/integrations/polyscale.mdxindex 613ba1d5ba2..81c2d84a9a0 100644--- a/apps/docs/pages/guides/integrations/polyscale.mdx+++ b/apps/docs/pages/guides/integrations/polyscale.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: polyscaletitle: 'PolyScale'description: 'The easiest way to get low-latency reads from your Supabase database for multi-region applications is by using PolyScale, a code-free global caching service.'diff --git a/apps/docs/pages/guides/integrations/prisma.mdx b/apps/docs/pages/guides/integrations/prisma.mdxindex e3d366fa1c5..3c23dc921cd 100644--- a/apps/docs/pages/guides/integrations/prisma.mdx+++ b/apps/docs/pages/guides/integrations/prisma.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: prismatitle: 'Prisma'description: 'Connect your Supabase postgres database to your Prisma project.'diff --git a/apps/docs/pages/guides/integrations/sequin.mdx b/apps/docs/pages/guides/integrations/sequin.mdxindex a5600c862d1..71a78ed742f 100644--- a/apps/docs/pages/guides/integrations/sequin.mdx+++ b/apps/docs/pages/guides/integrations/sequin.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: sequintitle: 'Sequin'description: 'Sync platforms like Stripe and Salesforce with your Supabase database in real-time using Sequin.'diff --git a/apps/docs/pages/guides/integrations/snaplet.mdx b/apps/docs/pages/guides/integrations/snaplet.mdxindex 440579a4c7d..b93bcbeb47d 100644--- a/apps/docs/pages/guides/integrations/snaplet.mdx+++ b/apps/docs/pages/guides/integrations/snaplet.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: snaplettitle: 'Snaplet'description: 'Get started with Supabase and Snaplet, a developer tool for working with safe, versioned, up-to-date production-like data'diff --git a/apps/docs/pages/guides/integrations/stytch.mdx b/apps/docs/pages/guides/integrations/stytch.mdxindex 3929087f0d9..8dec88771e9 100644--- a/apps/docs/pages/guides/integrations/stytch.mdx+++ b/apps/docs/pages/guides/integrations/stytch.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: stytchtitle: 'Stytch'description: "Build a Next.js application powered by password-less authentication from Stytch, and Supabase's Row Level Security (RLS)."diff --git a/apps/docs/pages/guides/integrations/supertokens.mdx b/apps/docs/pages/guides/integrations/supertokens.mdxindex d83f13b267d..bc2d0d8f7f4 100644--- a/apps/docs/pages/guides/integrations/supertokens.mdx+++ b/apps/docs/pages/guides/integrations/supertokens.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: supertokenstitle: 'SuperTokens'description: 'Create a Next.js application secured by SuperTokens and PostgreSQL Row Level Security.'diff --git a/apps/docs/pages/guides/integrations/vercel.mdx b/apps/docs/pages/guides/integrations/vercel.mdxindex dd2ec91417b..29672dbaa40 100644--- a/apps/docs/pages/guides/integrations/vercel.mdx+++ b/apps/docs/pages/guides/integrations/vercel.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: verceltitle: 'Vercel'description: The fastest way to get up and running with an application that uses Supabase is with Vercel's Next.js starter and Supabase integration.diff --git a/apps/docs/pages/guides/migrations/firebase-auth.mdx b/apps/docs/pages/guides/migrations/firebase-auth.mdxindex 02bd71ee25f..0e17ae782ae 100644--- a/apps/docs/pages/guides/migrations/firebase-auth.mdx+++ b/apps/docs/pages/guides/migrations/firebase-auth.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: firebase-authtitle: 'Firebase Auth Migration'description: 'Migrate Firebase auth users to a Supabase project.'diff --git a/apps/docs/pages/guides/migrations/firebase-storage.mdx b/apps/docs/pages/guides/migrations/firebase-storage.mdxindex 7e5ff192e47..ab25ae4c019 100644--- a/apps/docs/pages/guides/migrations/firebase-storage.mdx+++ b/apps/docs/pages/guides/migrations/firebase-storage.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: firebase-storagetitle: 'Firebase Storage Migration'description: 'Migrate Firebase Storage files to Supabase Storage.'diff --git a/apps/docs/pages/guides/migrations/firestore-data.mdx b/apps/docs/pages/guides/migrations/firestore-data.mdxindex 4f270329a4d..6b64d110ad4 100644--- a/apps/docs/pages/guides/migrations/firestore-data.mdx+++ b/apps/docs/pages/guides/migrations/firestore-data.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: firestore-datatitle: 'Firestore Data Migration'description: 'Migrate your Firebase Firestore database to a Supabase Postgres database.'diff --git a/apps/docs/pages/guides/migrations/heroku.mdx b/apps/docs/pages/guides/migrations/heroku.mdxindex 0e8b7eb2bf0..e7409148e7b 100644--- a/apps/docs/pages/guides/migrations/heroku.mdx+++ b/apps/docs/pages/guides/migrations/heroku.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: herokutitle: 'Migrate from Heroku to Supabase'description: 'Migrate your Heroku Postgres database to Supabase.'diff --git a/apps/docs/pages/guides/platform/custom-domains.mdx b/apps/docs/pages/guides/platform/custom-domains.mdxindex 9ac85d2254f..60f1b607acd 100644--- a/apps/docs/pages/guides/platform/custom-domains.mdx+++ b/apps/docs/pages/guides/platform/custom-domains.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: custom-domainstitle: Custom Domainsdescription: Configuring a Custom Domain for your Supabase project.diff --git a/apps/docs/pages/guides/platform/database-usage.mdx b/apps/docs/pages/guides/platform/database-usage.mdxindex d12d3e84791..318918e8d62 100644--- a/apps/docs/pages/guides/platform/database-usage.mdx+++ b/apps/docs/pages/guides/platform/database-usage.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: database-usagetitle: Database usagedescription: Understanding how database usage applies to your subscription.diff --git a/apps/docs/pages/guides/platform/going-into-prod.mdx b/apps/docs/pages/guides/platform/going-into-prod.mdxindex 9d803b2a123..ff4b1cc62fd 100644--- a/apps/docs/pages/guides/platform/going-into-prod.mdx+++ b/apps/docs/pages/guides/platform/going-into-prod.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: going-into-prodtitle: 'Production Readiness'description: 'Things to do before making your app publicly available'diff --git a/apps/docs/pages/guides/platform/logs.mdx b/apps/docs/pages/guides/platform/logs.mdxindex 9e05023420d..da1778a6315 100644--- a/apps/docs/pages/guides/platform/logs.mdx+++ b/apps/docs/pages/guides/platform/logs.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: logstitle: Loggingdescription: Getting started with Supabase Platform Log Browserdiff --git a/apps/docs/pages/guides/platform/metrics.mdx b/apps/docs/pages/guides/platform/metrics.mdxindex 1ba60fc4c26..d8d64974adc 100644--- a/apps/docs/pages/guides/platform/metrics.mdx+++ b/apps/docs/pages/guides/platform/metrics.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: metricstitle: Metricsdescription: Observability for your Supabase projectdiff --git a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdxindex b8e34c012c4..ca2e3313e1a 100644--- a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx+++ b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx@@ -1,11 +1,13 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: migrating-and-upgrading-projectstitle: 'Migrating and Upgrading Projects'description: Upgrade your project to the latest version of Supabase.sidebar_label: 'Migrating and upgrading'----Supabase ships fast and we endeavor to add all new features to existing projects wherever possible.+Supabase ships fast and we endeavor to add all new features to existing projects wherever possible.In some cases, access to new features require upgrading or migrating your Supabase project.## Upgrade your project@@ -75,27 +77,15 @@ const NEW_PROJECT_URL = 'https://yyy.supabase.co'const NEW_PROJECT_SERVICE_KEY = 'new-project-service-key-yyy';(async () => {- const oldSupabaseRestClient = createClient(- OLD_PROJECT_URL,- OLD_PROJECT_SERVICE_KEY,- {- schema: 'storage',- }- )- const oldSupabaseClient = createClient(- OLD_PROJECT_URL,- OLD_PROJECT_SERVICE_KEY- )- const newSupabaseClient = createClient(- NEW_PROJECT_URL,- NEW_PROJECT_SERVICE_KEY- )+ const oldSupabaseRestClient = createClient(OLD_PROJECT_URL, OLD_PROJECT_SERVICE_KEY, {+ schema: 'storage',+ })+ const oldSupabaseClient = createClient(OLD_PROJECT_URL, OLD_PROJECT_SERVICE_KEY)+ const newSupabaseClient = createClient(NEW_PROJECT_URL, NEW_PROJECT_SERVICE_KEY)// make sure you update max_rows in postgrest settings if you have a lot of objects// or paginate here- const { data: oldObjects, error } = await oldSupabaseRestClient- .from('objects')- .select()+ const { data: oldObjects, error } = await oldSupabaseRestClient.from('objects').select()if (error) {console.log('error getting objects from old bucket')throw error@@ -104,10 +94,9 @@ const NEW_PROJECT_SERVICE_KEY = 'new-project-service-key-yyy'for (const objectData of oldObjects) {console.log(`moving ${objectData.id}`)try {- const { data, error: downloadObjectError } =- await oldSupabaseClient.storage- .from(objectData.bucket_id)- .download(objectData.name)+ const { data, error: downloadObjectError } = await oldSupabaseClient.storage+ .from(objectData.bucket_id)+ .download(objectData.name)if (downloadObjectError) {throw downloadObjectError}diff --git a/apps/docs/pages/guides/platform/performance.mdx b/apps/docs/pages/guides/platform/performance.mdxindex 07dfa92dc61..3108e23c253 100644--- a/apps/docs/pages/guides/platform/performance.mdx+++ b/apps/docs/pages/guides/platform/performance.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: performancetitle: Performance Tuningdescription: Getting the best results out of your Supabase projectdiff --git a/apps/docs/pages/guides/platform/permissions.mdx b/apps/docs/pages/guides/platform/permissions.mdxindex c3fbf719d23..fbc390817fe 100644--- a/apps/docs/pages/guides/platform/permissions.mdx+++ b/apps/docs/pages/guides/platform/permissions.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: permissionstitle: Permissionsdescription: Permissions requirements for the Supabase Cloud hosting environmentdiff --git a/apps/docs/pages/guides/realtime.mdx b/apps/docs/pages/guides/realtime.mdxindex 12cc7c97fac..1bcf72eae99 100644--- a/apps/docs/pages/guides/realtime.mdx+++ b/apps/docs/pages/guides/realtime.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: realtimetitle: Realtimedescription: Supabase Realtime with Broadcast, Presence, and Postgres CDC.diff --git a/apps/docs/pages/guides/realtime/postgres-cdc.mdx b/apps/docs/pages/guides/realtime/postgres-cdc.mdxindex f14fc3f58a0..520463923f7 100644--- a/apps/docs/pages/guides/realtime/postgres-cdc.mdx+++ b/apps/docs/pages/guides/realtime/postgres-cdc.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: postgres-cdctitle: Postgres CDCdescription: Getting started with Realtime's Postgres CDC featurediff --git a/apps/docs/pages/guides/realtime/quickstart.mdx b/apps/docs/pages/guides/realtime/quickstart.mdxindex 957d1bed20a..4c833c74b4c 100644--- a/apps/docs/pages/guides/realtime/quickstart.mdx+++ b/apps/docs/pages/guides/realtime/quickstart.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: quickstarttitle: Realtime Quickstartdescription: Getting started with Realtime's Featuresdiff --git a/apps/docs/pages/guides/realtime/rate-limits.mdx b/apps/docs/pages/guides/realtime/rate-limits.mdxindex 6b35583687f..3c4fdf2aaa8 100644--- a/apps/docs/pages/guides/realtime/rate-limits.mdx+++ b/apps/docs/pages/guides/realtime/rate-limits.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: rate-limitstitle: Realtime Rate Limitsdescription: Understanding Realtime rate limitingdiff --git a/apps/docs/pages/guides/storage-cdn.mdx b/apps/docs/pages/guides/storage-cdn.mdxindex 7e3fdbd7b7e..b09d8cd97bb 100644--- a/apps/docs/pages/guides/storage-cdn.mdx+++ b/apps/docs/pages/guides/storage-cdn.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: storage-cdntitle: Storage CDNdescription: How Supabase Storage caches objects with a CDNdiff --git a/apps/docs/pages/guides/storage.mdx b/apps/docs/pages/guides/storage.mdxindex 3e788be8419..5a98f2ac539 100644--- a/apps/docs/pages/guides/storage.mdx+++ b/apps/docs/pages/guides/storage.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: storagetitle: Storagedescription: Use Supabase to store and serve files.diff --git a/apps/docs/pages/guides/storage/storage-sample.mdx b/apps/docs/pages/guides/storage/storage-sample.mdxindex 2e7cc678245..3f6ca0ca10f 100644--- a/apps/docs/pages/guides/storage/storage-sample.mdx+++ b/apps/docs/pages/guides/storage/storage-sample.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: storage-sampletitle: 'Storage Sample Doc'description: Storage Sample Docdiff --git a/apps/docs/pages/guides/with-angular.mdx b/apps/docs/pages/guides/with-angular.mdxindex 5bb2b471908..5ad2175036c 100644--- a/apps/docs/pages/guides/with-angular.mdx+++ b/apps/docs/pages/guides/with-angular.mdx@@ -1,14 +1,14 @@-----id: with-angular-title: 'Quickstart: Angular'-description: Learn how to use Supabase in your Angular App.-sidebar_label: Angular------import Tabs from '@theme/Tabs'-import TabItem from '@theme/TabItem'-import QuickstartIntro from './_partials/quickstart_intro.md'-import ProjectSetup from './_partials/project_setup.mdx'+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {+ id: 'with-angular',+ title: 'Quickstart: Angular',+ description: 'Learn how to use Supabase in your Angular App.',+ sidebar_label: 'Angular',+}++import QuickstartIntro from '/components/MDX/quickstart_intro.md'+import ProjectSetup from '/components/MDX/project_setup.mdx'<QuickstartIntro />@@ -539,3 +539,7 @@ At this stage you have a fully functional application!- Got a question? [Ask here](https://github.com/supabase/supabase/discussions).- Sign in: [app.supabase.com](https://app.supabase.com)++export const Page = ({ children }) => <Layout meta={meta} children={children} />++export default Pagediff --git a/apps/docs/pages/guides/with-expo.mdx b/apps/docs/pages/guides/with-expo.mdxindex 23fb04818de..04bcb1d7d53 100644--- a/apps/docs/pages/guides/with-expo.mdx+++ b/apps/docs/pages/guides/with-expo.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-expotitle: 'Quickstart: Expo'description: Learn how to use Supabase in your React Native App.diff --git a/apps/docs/pages/guides/with-flutter.mdx b/apps/docs/pages/guides/with-flutter.mdxindex 1bbc019615b..5e6ce06749c 100644--- a/apps/docs/pages/guides/with-flutter.mdx+++ b/apps/docs/pages/guides/with-flutter.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-fluttertitle: 'Quickstart: Flutter'description: Learn how to use Supabase in your Flutter App.diff --git a/apps/docs/pages/guides/with-ionic-angular.mdx b/apps/docs/pages/guides/with-ionic-angular.mdxindex e22f1c2b98e..7e212e26b1b 100644--- a/apps/docs/pages/guides/with-ionic-angular.mdx+++ b/apps/docs/pages/guides/with-ionic-angular.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-ionic-angulartitle: 'Quickstart: Ionic Angular'description: Learn how to use Supabase in your Ionic Angular App.diff --git a/apps/docs/pages/guides/with-ionic-react.mdx b/apps/docs/pages/guides/with-ionic-react.mdxindex eba8eea7953..3ea0eafc24b 100644--- a/apps/docs/pages/guides/with-ionic-react.mdx+++ b/apps/docs/pages/guides/with-ionic-react.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-ionic-reacttitle: 'Quickstart: Ionic React'description: Learn how to use Supabase in your Ionic React App.diff --git a/apps/docs/pages/guides/with-ionic-vue.mdx b/apps/docs/pages/guides/with-ionic-vue.mdxindex b00a505b820..cbc5f93a8a4 100644--- a/apps/docs/pages/guides/with-ionic-vue.mdx+++ b/apps/docs/pages/guides/with-ionic-vue.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-ionic-vuetitle: 'Quickstart: Ionic Vue'description: Learn how to use Supabase in your Ionic Vue App.diff --git a/apps/docs/pages/guides/with-nextjs.mdx b/apps/docs/pages/guides/with-nextjs.mdxindex 3f7b7b88d52..9f1e4b4a0bc 100644--- a/apps/docs/pages/guides/with-nextjs.mdx+++ b/apps/docs/pages/guides/with-nextjs.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-nextjstitle: 'Quickstart: Next.js'description: Learn how to use Supabase in your Next App.diff --git a/apps/docs/pages/guides/with-nuxt-3.mdx b/apps/docs/pages/guides/with-nuxt-3.mdxindex e6306df94c4..b033f7b5734 100644--- a/apps/docs/pages/guides/with-nuxt-3.mdx+++ b/apps/docs/pages/guides/with-nuxt-3.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-nuxt-3title: 'Quickstart: Nuxt 3'description: Learn how to use Supabase in your Nuxt 3 App.diff --git a/apps/docs/pages/guides/with-react.mdx b/apps/docs/pages/guides/with-react.mdxindex 35285b79462..47e48507a87 100644--- a/apps/docs/pages/guides/with-react.mdx+++ b/apps/docs/pages/guides/with-react.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-reacttitle: 'Quickstart: React'description: Learn how to use Supabase in your React App.diff --git a/apps/docs/pages/guides/with-redwoodjs.mdx b/apps/docs/pages/guides/with-redwoodjs.mdxindex a186de9ea5a..d9ff177fe1b 100644--- a/apps/docs/pages/guides/with-redwoodjs.mdx+++ b/apps/docs/pages/guides/with-redwoodjs.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-redwoodjstitle: 'Quickstart: RedwoodJS'description: Learn how to use Supabase in your RedwoodJS App.diff --git a/apps/docs/pages/guides/with-solidjs.mdx b/apps/docs/pages/guides/with-solidjs.mdxindex 979eaa0705b..92cf40bbf9c 100644--- a/apps/docs/pages/guides/with-solidjs.mdx+++ b/apps/docs/pages/guides/with-solidjs.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-solidjstitle: 'Quickstart: SolidJS'description: Learn how to use Supabase in your SolidJS App.diff --git a/apps/docs/pages/guides/with-svelte.mdx b/apps/docs/pages/guides/with-svelte.mdxindex 221580d6dec..b4999656d95 100644--- a/apps/docs/pages/guides/with-svelte.mdx+++ b/apps/docs/pages/guides/with-svelte.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-sveltetitle: 'Quickstart: Svelte'description: Learn how to use Supabase in your Svelte App.diff --git a/apps/docs/pages/guides/with-sveltekit.mdx b/apps/docs/pages/guides/with-sveltekit.mdxindex 76a21a54da2..52573b68659 100644--- a/apps/docs/pages/guides/with-sveltekit.mdx+++ b/apps/docs/pages/guides/with-sveltekit.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-sveltekittitle: 'Quickstart: SvelteKit'description: Learn how to use Supabase in your SvelteKit App.diff --git a/apps/docs/pages/guides/with-vue-3.mdx b/apps/docs/pages/guides/with-vue-3.mdxindex 60f566882c7..59dedc1568d 100644--- a/apps/docs/pages/guides/with-vue-3.mdx+++ b/apps/docs/pages/guides/with-vue-3.mdx@@ -1,4 +1,6 @@----+import Layout from '~/layouts/DefaultGuideLayout'++export const meta = {id: with-vue-3title: 'Quickstart: Vue 3'description: Learn how to use Supabase in your Vue 3 App.