Skip to content

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

Update

Terry Sutton82ad87420f35
diff --git a/apps/docs/docs/company/aup.md b/apps/docs/docs/company/aup.md
index 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: aup
title: Acceptable Use Policy
+
---
`Last Modified: 15 April 2021`
diff --git a/apps/docs/docs/company/privacy.md b/apps/docs/docs/company/privacy.md
index 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: privacy
title: Privacy Policy
+
---
`Last modified: 27 March 2021`
diff --git a/apps/docs/docs/company/sla.md b/apps/docs/docs/company/sla.md
index 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: sla
title: 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.md
index 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: terms
title: Terms of Service
+
---
`Last Modified: 20 November 2020`
diff --git a/apps/docs/docs/faq.mdx b/apps/docs/docs/faq.mdx
index 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: faq
title: FAQs
description: 'Most frequently asked questions regarding Supabase'
diff --git a/apps/docs/docs/features.mdx b/apps/docs/docs/features.mdx
deleted file mode 100755
index 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.mdx
index 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: contributing
title: Contributing
description: 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.mdx
index 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: introduction
title: Supabase Handbook
description: 'The Supabase public handbook and manifesto'
diff --git a/apps/docs/docs/handbook/supasquad.mdx b/apps/docs/docs/handbook/supasquad.mdx
index 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: supasquad
title: SupaSquad
description: 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.mdx
index 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 Page
diff --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.mdx
index 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-jwts
title: '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.mdx
index 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-oauth
title: '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.mdx
index 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-gotrue
title: '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 Server
diff --git a/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx
index 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-policies
title: '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 policies
diff --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.mdx
index 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-security
title: 'Part Two: Row Level Security'
description: Supabase Auth Deep Dive Part Two - Row Level Security
diff --git a/apps/docs/docs/reference.mdx b/apps/docs/docs/reference.mdx
index 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: reference
title: Reference Documentation
sidebar_label: Reference Documentation
diff --git a/apps/docs/docs/reference/api/release-notes.mdx b/apps/docs/docs/reference/api/release-notes.mdx
index 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-notes
title: Release Notes
---
diff --git a/apps/docs/docs/reference/auth/release-notes.mdx b/apps/docs/docs/reference/auth/release-notes.mdx
index 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-notes
title: Release Notes
---
diff --git a/apps/docs/docs/reference/cli.mdx b/apps/docs/docs/reference/cli.mdx
index 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: intro
slug: /
sidebar_position: 1
diff --git a/apps/docs/docs/reference/cli/release-notes.mdx b/apps/docs/docs/reference/cli/release-notes.mdx
index 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-notes
title: Release Notes
---
diff --git a/apps/docs/docs/reference/dart.mdx b/apps/docs/docs/reference/dart.mdx
index 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: intro
slug: /
title: Supabase Flutter Library
diff --git a/apps/docs/docs/reference/dart/initializing.mdx b/apps/docs/docs/reference/dart/initializing.mdx
index 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: initializing
title: 'Initializing'
slug: initializing
diff --git a/apps/docs/docs/reference/dart/installing.mdx b/apps/docs/docs/reference/dart/installing.mdx
index 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: installing
title: 'Installing'
slug: installing
diff --git a/apps/docs/docs/reference/dart/upgrade-guide.mdx b/apps/docs/docs/reference/dart/upgrade-guide.mdx
index 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-guide
title: Upgrade to supabase-flutter v1
description: '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.mdx
index 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: intro
slug: /
sidebar_label: Supabase Dart Library
diff --git a/apps/docs/docs/reference/javascript/installing.mdx b/apps/docs/docs/reference/javascript/installing.mdx
index 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: installing
title: 'Installing'
slug: installing
diff --git a/apps/docs/docs/reference/javascript/release-notes.mdx b/apps/docs/docs/reference/javascript/release-notes.mdx
index 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-notes
title: Release Notes
---
diff --git a/apps/docs/docs/reference/javascript/typescript-support.mdx b/apps/docs/docs/reference/javascript/typescript-support.mdx
index 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-support
title: Typescript Support
---
diff --git a/apps/docs/docs/reference/javascript/upgrade-guide.mdx b/apps/docs/docs/reference/javascript/upgrade-guide.mdx
index 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-guide
title: Upgrade to supabase-js v2
description: '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.mdx
index 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: intro
title: '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.mdx
index 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-types
title: 'Generating Types'
slug: generating-types
diff --git a/apps/docs/docs/reference/javascript/v1/initializing.mdx b/apps/docs/docs/reference/javascript/v1/initializing.mdx
index 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: initializing
title: '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 Supabase
The 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 your
The 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 your
No description provided.
</div>
-
+
</li>
</ul>
diff --git a/apps/docs/docs/reference/javascript/v1/installing.mdx b/apps/docs/docs/reference/javascript/v1/installing.mdx
index 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: installing
title: 'Installing'
slug: installing
diff --git a/apps/docs/docs/reference/postgres/changing-timezones.mdx b/apps/docs/docs/reference/postgres/changing-timezones.mdx
index 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-timezones
title: "Changing Timezones"
slug: changing-timezones
@@ -10,7 +12,6 @@ import TabsPanel from '@theme/TabsPanel';
Data types.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -19,38 +20,22 @@ Data types.
<TabsPanel id="sql" label="sql">
```sql
-alter database postgres
+alter database postgres
set 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
-
-
<Tabs
defaultActiveId="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 postgres
set 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
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -87,11 +70,10 @@ Get a full list of timezones supported by your database. This will return the fo
```sql
select 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.mdx
index 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: columns
title: "Columns"
slug: columns
@@ -10,7 +12,6 @@ import TabsPanel from '@theme/TabsPanel';
Creating columns.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -26,33 +27,14 @@ create table table_name (
);
```
-
</TabsPanel>
</Tabs>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## Examples
### During table creation
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -68,15 +50,12 @@ create table table_name (
);
```
-
</TabsPanel>
</Tabs>
### Create column
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -89,7 +68,6 @@ alter table new_table
add 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.mdx
index 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-strings
title: "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.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -20,42 +21,27 @@ There are various ways to connect to your database, depending on the configurati
```bash
postgres://postgres:postgres@localhost:5432/postgres
-# or
+# or
postgresql://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}`
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -65,11 +51,10 @@ If you're using a default setup, your postgres connection string will likely be
```bash
postgres://postgres:postgres@localhost:5432/postgres
-# or
+# or
postgresql://postgres:postgres@localhost:5432/postgres
```
-
</TabsPanel>
</Tabs>
@@ -89,7 +74,6 @@ See full [documentation](http://jdbc.postgresql.org/documentation/head/connect.h
jdbc:postgresql://{host}:{port}/{database_name}
```
-
</TabsPanel>
</Tabs>
@@ -109,7 +93,6 @@ See full [documentation](http://npgsql.projects.postgresql.org/docs/manual/UserM
Server=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.mdx
index 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-passwords
title: "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
-
-
<Tabs
defaultActiveId="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 postgres
with 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.mdx
index 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-users
title: "Database Users"
slug: database-users
@@ -10,31 +12,10 @@ import TabsPanel from '@theme/TabsPanel';
Users and Roles are almost interchangeable.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
## Examples
### Create New User
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -47,7 +28,6 @@ create user new_user
with 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.mdx
index 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: index
title: "Getting started"
slug: getting-started
@@ -8,8 +10,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postg
import 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.mdx
index 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: publications
title: "Publications"
slug: publications
@@ -8,35 +10,15 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postg
import 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 Publication
This publication will contain all changes to all tables.
-
<Tabs
defaultActiveId="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_name
for all tables;
```
-
</TabsPanel>
</Tabs>
### Create a Publication which listens to individual tables
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -66,19 +45,16 @@ for all tables;
<TabsPanel id="sql" label="sql">
```sql
-create publication publication_name
+create publication publication_name
for table table_one, table_two;
```
-
</TabsPanel>
</Tabs>
### Add tables to an existing publication
-
-
<Tabs
defaultActiveId="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_name
add table table_name;
```
-
</TabsPanel>
</Tabs>
### Listens to inserts only
-
-
<Tabs
defaultActiveId="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_name
for all tables
with (publish = 'insert');
```
-
</TabsPanel>
</Tabs>
### Listens to updates only
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -130,20 +100,17 @@ with (publish = 'insert');
<TabsPanel id="sql" label="sql">
```sql
-create publication publication_name
+create publication publication_name
for all tables
with (publish = 'update');
```
-
</TabsPanel>
</Tabs>
### Listens to deletions only
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -152,20 +119,17 @@ with (publish = 'update');
<TabsPanel id="sql" label="sql">
```sql
-create publication publication_name
+create publication publication_name
for all tables
with (publish = 'delete');
```
-
</TabsPanel>
</Tabs>
### Remove a Publication
-
-
<Tabs
defaultActiveId="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.
-
<Tabs
defaultActiveId="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.mdx
index 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: schemas
title: "Schemas"
slug: schemas
@@ -8,12 +10,11 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postg
import 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.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -25,36 +26,20 @@ For example, you might want to use a `public` schema for user-facing data, and a
create 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
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -66,15 +51,12 @@ create schema schema_name;
create schema schema_name;
```
-
</TabsPanel>
</Tabs>
### Removing a schema
-
-
<Tabs
defaultActiveId="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.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -108,7 +88,6 @@ As a result, you will always need to use double-quotes when referencing your sch
create 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.mdx
index 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: tables
title: "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.
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -28,7 +29,7 @@ create table table_name (
name text
);
-# with schema
+# with schema
create 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
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -80,7 +65,7 @@ create table table_name (
name text
);
-# with schema
+# with schema
create 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
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -113,15 +95,12 @@ create table table_name (
);
```
-
</TabsPanel>
</Tabs>
### Multiple foreign keys to the same table
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -135,15 +114,12 @@ alter table table_name
add constraint constraint_name_2 foreign key (column_2) references foreign_table(id);
```
-
</TabsPanel>
</Tabs>
### Delete a table
-
-
<Tabs
defaultActiveId="sql"
groupId="reference/postgres"
@@ -155,7 +131,6 @@ alter table table_name
delete 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.mdx
index 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.mdx
index 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-notes
title: Release Notes
---
diff --git a/apps/docs/docs/support.mdx b/apps/docs/docs/support.mdx
index 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: support
title: Support
description: Supabase Support
diff --git a/apps/docs/generator/legacy/components/Page.ts b/apps/docs/generator/legacy/components/Page.ts
index 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.ts
index 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: usage
slug: /usage
title: Usage
diff --git a/apps/docs/generator/templates/CliTemplate.ts b/apps/docs/generator/templates/CliTemplate.ts
index 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: usage
slug: /usage
title: Usage
diff --git a/apps/docs/generator/templates/ConfigTemplate.ts b/apps/docs/generator/templates/ConfigTemplate.ts
index 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: config
slug: /config
title: Configuration
diff --git a/apps/docs/generator/templates/SdkTemplate.ts b/apps/docs/generator/templates/SdkTemplate.ts
index 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: usage
title: Usage
toc_max_heading_level: 2
diff --git a/apps/docs/docs/architecture.mdx b/apps/docs/pages/architecture.mdx
similarity index 96%
rename from apps/docs/docs/architecture.mdx
rename to apps/docs/pages/architecture.mdx
index 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 evolv
Supabase supports existing tools and communities wherever possible. Supabase is more like a "community of communities" - each tool typically has its own community
which 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 Page
diff --git a/apps/docs/pages/guides/features.mdx b/apps/docs/pages/features.mdx
similarity index 95%
rename from apps/docs/pages/guides/features.mdx
rename to apps/docs/pages/features.mdx
index 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 Page
diff --git a/apps/docs/pages/guides/api.mdx b/apps/docs/pages/guides/api.mdx
index 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: api
title: Serverless APIs
description: Auto-generating and Realtime APIs.
diff --git a/apps/docs/pages/guides/auth.mdx b/apps/docs/pages/guides/auth.mdx
index 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: auth
title: Auth
description: 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.mdx
index 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-apple
title: 'Login with Apple'
description: Add Apple OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-azure.mdx b/apps/docs/pages/guides/auth/auth-azure.mdx
index 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-azure
title: 'Login with Azure'
description: Add Azure OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-bitbucket.mdx b/apps/docs/pages/guides/auth/auth-bitbucket.mdx
index 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-bitbucket
title: 'Login with Bitbucket'
description: Add Bitbucket OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-captcha.mdx b/apps/docs/pages/guides/auth/auth-captcha.mdx
index 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-captcha
title: 'Enable Captcha Protection'
description: Add Captcha Protection to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-discord.mdx b/apps/docs/pages/guides/auth/auth-discord.mdx
index 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-discord
title: 'Login with Discord'
description: Add Discord OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-email.mdx b/apps/docs/pages/guides/auth/auth-email.mdx
index 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-email
title: '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.mdx
index 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-facebook
title: 'Login with Facebook'
description: Add Facebook OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-github.mdx b/apps/docs/pages/guides/auth/auth-github.mdx
index 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-github
title: 'Login with GitHub'
description: Add GitHub OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-gitlab.mdx b/apps/docs/pages/guides/auth/auth-gitlab.mdx
index 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-gitlab
title: 'Login with GitLab'
description: Add GitLab OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-google.mdx b/apps/docs/pages/guides/auth/auth-google.mdx
index 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-google
title: 'Login with Google'
description: Add Google OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-helpers.mdx b/apps/docs/pages/guides/auth/auth-helpers.mdx
index 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: index
title: Auth Helpers
description: 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.mdx
index 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-ui
title: Auth UI
description: 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.mdx
index 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: nextjs
title: Supabase Auth with Next.js
description: 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.mdx
index 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: remix
title: Supabase Auth with Remix
description: 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.mdx
index 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: sveltekit
title: Supabase Auth with SvelteKit
description: Convenience helpers for implementing user authentication in SvelteKit.
@@ -53,21 +55,18 @@ PUBLIC_SUPABASE_ANON_KEY=your-anon-key
Start 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 `invalidateAl
To 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 types
declare 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) to
For [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 get
Wrap 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 string
const { 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
- }
- });
+ email,
+ },
+ })
}
return invalid(500, {
error: 'Server error. Try again later.',
values: {
- email
- }
- });
+ 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 handl
protect 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-routes
if (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 types
declare 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.mdx
index 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-keycloak
title: 'Login with Keycloak'
description: Add Keycloak OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-linkedin.mdx b/apps/docs/pages/guides/auth/auth-linkedin.mdx
index 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-linkedin
title: 'Login with LinkedIn'
description: Add LinkedIn OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-magic-link.mdx b/apps/docs/pages/guides/auth/auth-magic-link.mdx
index 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-link
title: '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.mdx
index 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-messagebird
title: Phone Auth with MessageBird
description: 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.mdx
index 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-mfa
title: '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 with
MFA because they require the user to provide proof of
both 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/), a
standard measure about the assurance Supabase Auth has of the user's identity
for 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 method
such as email+password, magic link, one-time password, phone auth or social
login.
-2. **Assurance Level 2: `aal2`**
+2. **Assurance Level 2: `aal2`**
Means that the user's identity was additionally verified using at least one
second 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-up
MFA in. You can add this right after sign-up, or as part of a separate flow in
the 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 challenge
screen to the user asking them to prove they have access to the additional
factor.
-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 enforce
authorization rules across your app: on the frontend, backend, API servers or
Row-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 an
account. We recommend encouraging all users to set up MFA if that makes sense
for your application. Many applications offer this as an opt-in step in an
effort 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 QR
code 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 which
they 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 user
and 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) into
their app and is working correctly. If the verification succeeds, the factor
immediately 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 to
enforce 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 MFA
first.
-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 access
without going through MFA first.
@@ -547,14 +549,14 @@ using Row Level Security policies will give you sufficient protection. In the
event that you have other APIs that you wish to protect, follow these general
guidelines:
-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 to
continue 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 questions
diff --git a/apps/docs/pages/guides/auth/auth-notion.mdx b/apps/docs/pages/guides/auth/auth-notion.mdx
index 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-notion
title: 'Login with Notion'
description: Add Notion OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-slack.mdx b/apps/docs/pages/guides/auth/auth-slack.mdx
index 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-slack
title: 'Login with Slack'
description: Add Slack OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-spotify.mdx b/apps/docs/pages/guides/auth/auth-spotify.mdx
index 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-spotify
title: 'Login with Spotify'
description: Add Spotify OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-twilio.mdx b/apps/docs/pages/guides/auth/auth-twilio.mdx
index 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-twilio
title: Phone Auth with Twilio
description: 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.mdx
index 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-twitch
title: 'Login with Twitch'
description: Add Twitch OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-twitter.mdx b/apps/docs/pages/guides/auth/auth-twitter.mdx
index 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-twitter
title: 'Login with Twitter'
description: Add Twitter OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-vonage.mdx b/apps/docs/pages/guides/auth/auth-vonage.mdx
index 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-vonage
title: Phone Auth with Vonage
description: 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.mdx
index 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-workos
title: 'Login with WorkOS'
description: Add WorkOS OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/auth-zoom.mdx b/apps/docs/pages/guides/auth/auth-zoom.mdx
index 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-zoom
title: 'Login with Zoom'
description: Add Zoom OAuth to your Supabase project
diff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdx
index 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-data
title: Managing User Data
description: 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 row
diff --git a/apps/docs/pages/guides/auth/row-level-security.mdx b/apps/docs/pages/guides/auth/row-level-security.mdx
index 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-security
title: Row Level Security
description: 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.mdx
index 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-rendering
title: Server-Side Rendering
description: Render pages with user information on the server.
diff --git a/apps/docs/pages/guides/cli.mdx b/apps/docs/pages/guides/cli.mdx
index 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: cli
title: Supabase CLI
description: 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):
+
```sh
npm install supabase --save-dev
```
diff --git a/apps/docs/pages/guides/cli/local-development.mdx b/apps/docs/pages/guides/cli/local-development.mdx
index 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-development
title: Local Development
description: 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.mdx
index 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-environments
title: Managing Environments
description: 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.mdx
index 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: database
title: Database
description: Use Supabase to manage your data.
diff --git a/apps/docs/pages/guides/database/arrays.mdx b/apps/docs/pages/guides/database/arrays.mdx
index 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: arrays
title: '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.mdx
index 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-postgres
title: '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 server
![Register a new postgres server.](/docs/img/guides/database/register-server-pgAdmin.png)
diff --git a/apps/docs/pages/guides/database/extensions.mdx b/apps/docs/pages/guides/database/extensions.mdx
index 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: extensions
title: Overview
description: Using Postgres extensions.
diff --git a/apps/docs/pages/guides/database/extensions/http.mdx b/apps/docs/pages/guides/database/extensions/http.mdx
index 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: http
title: '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.mdx
index 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: pgcron
title: '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.mdx
index 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: pgnet
title: '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.mdx
index 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: pgtap
title: '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.mdx
index 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: plv8
title: '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.mdx
index 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-ossp
title: '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.mdx
index 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-search
title: '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.mdx
index 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: functions
title: Database Functions
description: Creating and using Postgres functions.
diff --git a/apps/docs/pages/guides/database/json.mdx b/apps/docs/pages/guides/database/json.mdx
index 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: json
title: '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.mdx
index 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-passwords
title: '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.mdx
index 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-timezones
title: 'Timezones'
slug: managing-timezones
diff --git a/apps/docs/pages/guides/database/replication.mdx b/apps/docs/pages/guides/database/replication.mdx
index 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: replication
title: 'Replication'
slug: replication
@@ -22,12 +24,7 @@ Replication is done through _publications_, a method of choosing which changes t
4. 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 publication
diff --git a/apps/docs/pages/guides/database/sql-to-api.mdx b/apps/docs/pages/guides/database/sql-to-api.mdx
index 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-api
title: 'Converting SQL to JavaScript API'
description: Implementing common SQL patterns in the JavaScript API
diff --git a/apps/docs/pages/guides/database/tables.mdx b/apps/docs/pages/guides/database/tables.mdx
index 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: tables
title: Tables and Data
description: Creating and using Postgres tables.
diff --git a/apps/docs/pages/guides/database/testing.mdx b/apps/docs/pages/guides/database/testing.mdx
index 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: testing
title: Testing Your Database
description: 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.mdx
index 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: timeouts
title: Timeouts
description: Timeouts and optimization
diff --git a/apps/docs/pages/guides/database/webhooks.mdx b/apps/docs/pages/guides/database/webhooks.mdx
index 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: webhooks
title: 'Database Webhooks'
description: Trigger external payloads on database events.
diff --git a/apps/docs/pages/guides/examples.mdx b/apps/docs/pages/guides/examples.mdx
index 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: examples
title: Examples and Resources
description: 'Examples you can use to get started with Supabase'
diff --git a/apps/docs/pages/guides/functions.mdx b/apps/docs/pages/guides/functions.mdx
index 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: functions
title: Edge Functions
description: 'Globally distributed TypeScript functions.'
diff --git a/apps/docs/pages/guides/functions/auth.mdx b/apps/docs/pages/guides/functions/auth.mdx
index 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: auth
title: Auth
description: Supabase Edge Functions and Auth.
diff --git a/apps/docs/pages/guides/functions/cicd-workflow.mdx b/apps/docs/pages/guides/functions/cicd-workflow.mdx
index 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-workflow
title: CI / CD Workflow
description: 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.mdx
index 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: examples
title: Examples
description: Useful Supabase Edge Functions Examples
diff --git a/apps/docs/pages/guides/hosting/docker.mdx b/apps/docs/pages/guides/hosting/docker.mdx
index 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: docker
title: Self-hosting with Docker
description: How to configure and deploy Supabase.
diff --git a/apps/docs/pages/guides/hosting/overview.mdx b/apps/docs/pages/guides/hosting/overview.mdx
index 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: overview
title: Self Hosting
sidebar_label: Overview
diff --git a/apps/docs/pages/guides/hosting/platform.mdx b/apps/docs/pages/guides/hosting/platform.mdx
index 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: platform
title: Supabase Platform
description: Getting started with the Supabase Platform.
@@ -29,12 +31,7 @@ Organizations are a way to group your projects. Each organization can be configu
You 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.mdx
index 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: appsmith
title: '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.mdx
index 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: auth0
title: '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.mdx
index 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: authsignal
title: '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.mdx
index 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: clerk
title: '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.mdx
index 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: dashibase
title: '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.mdx
index 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: dhiwise
title: '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.mdx
index 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: directus
title: '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.mdx
index 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: draftbit
title: '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.mdx
index 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: fezto
title: '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.mdx
index 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: integrations
title: '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.mdx
index 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: keyri
title: '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.mdx
index 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: pgmustard
title: '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.mdx
index 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: plasmic
title: '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.mdx
index 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: polyscale
title: '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.mdx
index 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: prisma
title: '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.mdx
index 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: sequin
title: '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.mdx
index 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: snaplet
title: '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.mdx
index 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: stytch
title: '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.mdx
index 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: supertokens
title: '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.mdx
index 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: vercel
title: '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.mdx
index 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-auth
title: '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.mdx
index 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-storage
title: '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.mdx
index 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-data
title: '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.mdx
index 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: heroku
title: '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.mdx
index 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-domains
title: Custom Domains
description: 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.mdx
index 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-usage
title: Database usage
description: 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.mdx
index 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-prod
title: '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.mdx
index 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: logs
title: Logging
description: Getting started with Supabase Platform Log Browser
diff --git a/apps/docs/pages/guides/platform/metrics.mdx b/apps/docs/pages/guides/platform/metrics.mdx
index 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: metrics
title: Metrics
description: Observability for your Supabase project
diff --git a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
index 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-projects
title: '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.mdx
index 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: performance
title: Performance Tuning
description: Getting the best results out of your Supabase project
diff --git a/apps/docs/pages/guides/platform/permissions.mdx b/apps/docs/pages/guides/platform/permissions.mdx
index 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: permissions
title: Permissions
description: Permissions requirements for the Supabase Cloud hosting environment
diff --git a/apps/docs/pages/guides/realtime.mdx b/apps/docs/pages/guides/realtime.mdx
index 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: realtime
title: Realtime
description: 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.mdx
index 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-cdc
title: Postgres CDC
description: Getting started with Realtime's Postgres CDC feature
diff --git a/apps/docs/pages/guides/realtime/quickstart.mdx b/apps/docs/pages/guides/realtime/quickstart.mdx
index 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: quickstart
title: Realtime Quickstart
description: Getting started with Realtime's Features
diff --git a/apps/docs/pages/guides/realtime/rate-limits.mdx b/apps/docs/pages/guides/realtime/rate-limits.mdx
index 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-limits
title: Realtime Rate Limits
description: Understanding Realtime rate limiting
diff --git a/apps/docs/pages/guides/storage-cdn.mdx b/apps/docs/pages/guides/storage-cdn.mdx
index 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-cdn
title: Storage CDN
description: How Supabase Storage caches objects with a CDN
diff --git a/apps/docs/pages/guides/storage.mdx b/apps/docs/pages/guides/storage.mdx
index 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: storage
title: Storage
description: 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.mdx
index 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-sample
title: 'Storage Sample Doc'
description: Storage Sample Doc
diff --git a/apps/docs/pages/guides/with-angular.mdx b/apps/docs/pages/guides/with-angular.mdx
index 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 Page
diff --git a/apps/docs/pages/guides/with-expo.mdx b/apps/docs/pages/guides/with-expo.mdx
index 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-expo
title: '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.mdx
index 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-flutter
title: '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.mdx
index 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-angular
title: '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.mdx
index 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-react
title: '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.mdx
index 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-vue
title: '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.mdx
index 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-nextjs
title: '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.mdx
index 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-3
title: '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.mdx
index 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-react
title: '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.mdx
index 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-redwoodjs
title: '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.mdx
index 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-solidjs
title: '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.mdx
index 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-svelte
title: '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.mdx
index 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-sveltekit
title: '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.mdx
index 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-3
title: 'Quickstart: Vue 3'
description: Learn how to use Supabase in your Vue 3 App.