Skip to content

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

prettify

Copple0f18e9af62dc
diff --git a/apps/reference/docs/company/sla.md b/apps/reference/docs/company/sla.md
index 366be52b0f9..00cbf36e740 100644
--- a/apps/reference/docs/company/sla.md
+++ b/apps/reference/docs/company/sla.md
@@ -3,21 +3,21 @@ 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:
+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:
## Platform
+
### 1. Uptime Commitment
Supabase will provide Actual Availability for at least ninety-nine and nine tenths percent (99.9%) of the total time in each calendar month during the Subscription Term, as measured by Supabase (the **"Uptime Commitment"**).
-
### 2. Service Credits
-If the Uptime Commitment is not met during any particular calendar month during the Subscription Term, then Customer will be eligible for a service credit ("Service Credit"), provided that Customer reports to Supabase such failure to meet the Uptime Commitment and requests such Service Credit in accordance with this Exhibit. The amount of any Service Credit due hereunder shall be calculated as follows:
-X * Y, where X = the total fees due from Customer to Supabase for the affected Services for the relevant calendar month (regardless of when billed or payable), and Y = the Credit Percentage corresponding with the Actual Availability provided (as a percentage of total time) for the relevant calendar month, as set forth in the table below.
+If the Uptime Commitment is not met during any particular calendar month during the Subscription Term, then Customer will be eligible for a service credit ("Service Credit"), provided that Customer reports to Supabase such failure to meet the Uptime Commitment and requests such Service Credit in accordance with this Exhibit. The amount of any Service Credit due hereunder shall be calculated as follows:
+X \* Y, where X = the total fees due from Customer to Supabase for the affected Services for the relevant calendar month (regardless of when billed or payable), and Y = the Credit Percentage corresponding with the Actual Availability provided (as a percentage of total time) for the relevant calendar month, as set forth in the table below.
| Actual Availability | Credit Percentage |
-|----------------------------------------------------|-------------------|
+| -------------------------------------------------- | ----------------- |
| Less than 99.9% but greater than or equal to 99.0% | 10% |
| Less than 99.0% but greater than or equal to 98.0% | 15% |
| Less than 98.0% but greater than or equal to 96.0% | 20% |
@@ -33,7 +33,7 @@ All capitalized words used but not defined in this Service Level Agreement have
#### 4.1 Scheduled Availability
-"Scheduled Availability" means the time, in minutes, that the applicable Services are generally accessible and available to Customer’s Permitted Users.
+"Scheduled Availability" means the time, in minutes, that the applicable Services are generally accessible and available to Customer’s Permitted Users.
#### 4.2 Unscheduled Downtime
@@ -41,7 +41,7 @@ All capitalized words used but not defined in this Service Level Agreement have
#### 4.3 Actual Availability
-"Actual Availability" means Scheduled Availability less Unscheduled Downtime.
+"Actual Availability" means Scheduled Availability less Unscheduled Downtime.
## Support
@@ -51,39 +51,38 @@ Supabase Support Service Level Agreements.
**Critical Issue**
-Defect resulting in full or partial system outage or a condition that makes Supabase unusable
-or unavailable in production for all of Customer’s Users.
+Defect resulting in full or partial system outage or a condition that makes Supabase unusable
+or unavailable in production for all of Customer’s Users.
### 2. High
**Significant Business Disruption**
-Issue resulting in a situation meaning major functionality is impacted and
-significant performance degradation is experienced. Issue impacts significant proportion of user base and / or major
-Supabase functionality.
+Issue resulting in a situation meaning major functionality is impacted and
+significant performance degradation is experienced. Issue impacts significant proportion of user base and / or major
+Supabase functionality.
### 3. Normal
**Minor Feature or Functional Issue / General Question**
-Issue results in a component of Supabase not
-performing as expected or documented. An inquiry by a Customer representative regarding a general technical issue
-or general question.
+Issue results in a component of Supabase not
+performing as expected or documented. An inquiry by a Customer representative regarding a general technical issue
+or general question.
### 4. Low
**Minor Issue / Feature Request**
-An Information request about Supabase or feature request.
+An Information request about Supabase or feature request.
## Target response times
-| Severity Level | Standard | Priority | Priority Plus |
-|----------------|--------------------------------------------|----------------------------------|-----------------------------------|
-| 1. Urgent | 1 business hour<br />24/7 × 365 | 1 business hour<br />24/7 × 365 | 1 business hour<br />24/7 × 365 |
+| Severity Level | Standard | Priority | Priority Plus |
+| -------------- | ------------------------------------- | ------------------------------------- | -------------------------------------- |
+| 1. Urgent | 1 business hour<br />24/7 × 365 | 1 business hour<br />24/7 × 365 | 1 business hour<br />24/7 × 365 |
| 2. High | 4 business hours<br />Monday - Friday | 2 business hours<br />Monday - Friday | 2 business hours<br />24/7 × 365 |
| 3. Normal | 1 business day<br />Monday - Friday | 1 business day<br />Monday - Friday | 12 business hours<br />Monday - Friday |
| 4. Low | 2 business days<br />Monday - Friday | 2 business days<br />Monday - Friday | 1 business day<br />Monday - Friday |
-
Business hours are from 6am to 6pm (local time), except where otherwise stated.
diff --git a/apps/reference/docs/faq.md b/apps/reference/docs/faq.md
index 62bbe79a9c6..044a73f9ec0 100755
--- a/apps/reference/docs/faq.md
+++ b/apps/reference/docs/faq.md
@@ -14,17 +14,17 @@ Self-hosting Supabase is free. If you wish to use our cloud-platform, we provide
### How do I host Supabase?
-You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker), and find detailed instructions [here](/docs/guides/hosting/overview).
+You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker), and find detailed instructions [here](/docs/guides/hosting/overview).
-Supabase is an amalgamation of open source tools. Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support directly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are third-party tools (like [KonSupabase is an amalgamation open sourceg](https://github.com/Kong/kong)).
+Supabase is an amalgamation of open source tools. Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support directly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are third-party tools (like [KonSupabase is an amalgamation open sourceg](https://github.com/Kong/kong)).
All of the tools we use in Supabase are MIT, Apache 2.0, or PostgreSQL licensed. This is one of the requirements to be considered for the Supabase stack.
### How can you be a Firebase alternative if you're built with a relational database?
-We started Supabase because we love the functionality of Firebase, but we personally experienced the scaling issues that many others experienced. We chose Postgres because it's well-trusted, with phenomenal scalability.
+We started Supabase because we love the functionality of Firebase, but we personally experienced the scaling issues that many others experienced. We chose Postgres because it's well-trusted, with phenomenal scalability.
-Our goal is to make Postgres as easy to use as Firebase, so that you no longer have to choose between usability and scalability.
+Our goal is to make Postgres as easy to use as Firebase, so that you no longer have to choose between usability and scalability.
We're sure that once you start using Postgres, you'll love it more than any other database.
### Do you support `[some other database]`?
@@ -33,7 +33,6 @@ We only support PostgreSQL. It's unlikely we'll ever move away from Postgres; ho
### Do you have a library for `[some other language]`?
-We officially support [JavaScript](/docs/reference/javascript/installing) and [Dart](/docs/reference/dart/installing).
+We officially support [JavaScript](/docs/reference/javascript/installing) and [Dart](/docs/reference/dart/installing).
You can find community-supported libraries in our [GitHub Community](https://github.com/supabase-community), and you can also help us to identify the most popular languages by [voting for a new client library](https://github.com/supabase/supabase/discussions/5).
-
diff --git a/apps/reference/docs/gotrue/server/about.md b/apps/reference/docs/gotrue/server/about.md
index 1937e117f52..e84698de591 100644
--- a/apps/reference/docs/gotrue/server/about.md
+++ b/apps/reference/docs/gotrue/server/about.md
@@ -256,7 +256,8 @@ Default Content (if template is unavailable):
<h2>You have been invited</h2>
<p>
- You have been invited to create a user on {{ .SiteURL }}. Follow this link to accept the invite:
+ You have been invited to create a user on {{ .SiteURL }}. Follow this link to
+ accept the invite:
</p>
<p><a href="{{ .ConfirmationURL }}">Accept the invite</a></p>
```
@@ -313,7 +314,10 @@ Default Content (if template is unavailable):
```html
<h2>Confirm Change of Email</h2>
-<p>Follow this link to confirm the update of your email from {{ .Email }} to {{ .NewEmail }}:</p>
+<p>
+ Follow this link to confirm the update of your email from {{ .Email }} to {{
+ .NewEmail }}:
+</p>
<p><a href="{{ .ConfirmationURL }}">Change Email</a></p>
```
@@ -635,7 +639,6 @@ Returns:
}
```
-
### **PUT /admin/users/{user_id}**
Updates a user. Requires your `service_role` API key and thus should only be
diff --git a/apps/reference/docs/learn/auth-deep-dive/jwts.md b/apps/reference/docs/learn/auth-deep-dive/jwts.md
index 708bfa2fc3e..67c79c572a0 100644
--- a/apps/reference/docs/learn/auth-deep-dive/jwts.md
+++ b/apps/reference/docs/learn/auth-deep-dive/jwts.md
@@ -137,7 +137,10 @@ The second key, `service role key`, should only ever be used on one of your own
The `user access token` is the JWT issued when you call for example:
```js
-supabase.auth.signIn({ email: '[email protected]', password: 'They_Live_1988!' })
+supabase.auth.signIn({
+ email: '[email protected]',
+ password: 'They_Live_1988!',
+})
```
This token should be passed in addition to the `apikey` header as an `Authorization Bearer` header like:
diff --git a/apps/reference/docs/learn/auth-deep-dive/row-level-security.md b/apps/reference/docs/learn/auth-deep-dive/row-level-security.md
index 490d8e106cb..01e9ffa4f57 100644
--- a/apps/reference/docs/learn/auth-deep-dive/row-level-security.md
+++ b/apps/reference/docs/learn/auth-deep-dive/row-level-security.md
@@ -49,7 +49,9 @@ You can see that it's possible to freely read from and write to the table by usi
```js
// Writing
-let { data, error } = await supabase.from('leaderboard').insert({ name: 'Bob', score: 99999 })
+let { data, error } = await supabase
+ .from('leaderboard')
+ .insert({ name: 'Bob', score: 99999 })
// Reading
let { data, error } = await supabase
diff --git a/apps/reference/docs/postgres/server/docker.md b/apps/reference/docs/postgres/server/docker.md
index 0465f5b9adc..2fa4922e4a8 100644
--- a/apps/reference/docs/postgres/server/docker.md
+++ b/apps/reference/docs/postgres/server/docker.md
@@ -6,14 +6,14 @@ description: 'Host your own Postgres server'
## Docker
-The image is now available in [Docker Hub](https://hub.docker.com/r/supabase/postgres) under the name `supabase/postgres`.
+The image is now available in [Docker Hub](https://hub.docker.com/r/supabase/postgres) under the name `supabase/postgres`.
## Docker compose
You can use the [docker-compose file](https://github.com/supabase/postgres/blob/develop/docker/docker-compose.yml) available in this repository as your starting point. You can then run:
-
```
$ docker-compose up
```
+
As the image is based on the [postgreSQL 12 image](https://hub.docker.com/_/postgres), environment variables from the postgreSQL 12 image are applicable to this image.
diff --git a/apps/reference/docusaurus.config.js b/apps/reference/docusaurus.config.js
index 72349d8ec6a..15b10de0706 100644
--- a/apps/reference/docusaurus.config.js
+++ b/apps/reference/docusaurus.config.js
@@ -17,7 +17,7 @@ const config = {
// onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: '/favicon.ico',
- themes: ['docusaurus-theme-search-typesense'],
+ // themes: ['docusaurus-theme-search-typesense'],
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
@@ -238,26 +238,26 @@ const config = {
darkTheme: darkCodeTheme,
},
- typesense: {
- typesenseCollectionName: 'supabase', // Replace with your own doc site's name. Should match the collection name in the scraper settings.
+ // typesense: {
+ // typesenseCollectionName: 'supabase', // Replace with your own doc site's name. Should match the collection name in the scraper settings.
- typesenseServerConfig: {
- nodes: [
- {
- host: 'doc-search.supabase.com',
- port: 443,
- protocol: 'https',
- },
- ],
- apiKey: 't0HAJQy4KtcMk3aYGnm8ONqab2oAysJz',
- },
+ // typesenseServerConfig: {
+ // nodes: [
+ // {
+ // host: 'doc-search.supabase.com',
+ // port: 443,
+ // protocol: 'https',
+ // },
+ // ],
+ // apiKey: 't0HAJQy4KtcMk3aYGnm8ONqab2oAysJz',
+ // },
- // Optional: Typesense search parameters: https://typesense.org/docs/0.21.0/api/documents.md#search-parameters
- typesenseSearchParameters: {},
+ // // Optional: Typesense search parameters: https://typesense.org/docs/0.21.0/api/documents.md#search-parameters
+ // typesenseSearchParameters: {},
- // Optional
- contextualSearch: true,
- },
+ // // Optional
+ // contextualSearch: true,
+ // },
}),
}
diff --git a/apps/reference/src/components/CustomCodeBlock.js b/apps/reference/src/components/CustomCodeBlock.js
index 43f60f47b73..484c8896661 100644
--- a/apps/reference/src/components/CustomCodeBlock.js
+++ b/apps/reference/src/components/CustomCodeBlock.js
@@ -34,7 +34,9 @@ export default function CustomCodeBlock({
<div className={'code-with-header repsonse-header'}>
<a
className="code-header has-hover-pointer"
- style={showResponse ? styles.responseShown : styles.responseHidden}
+ style={
+ showResponse ? styles.responseShown : styles.responseHidden
+ }
onClick={() => toggleResponse(!showResponse)}
>
{showResponse ? 'Hide' : 'Show'} Response
diff --git a/apps/reference/src/components/Extensions.js b/apps/reference/src/components/Extensions.js
index 2708e1c0f60..4503cf07592 100644
--- a/apps/reference/src/components/Extensions.js
+++ b/apps/reference/src/components/Extensions.js
@@ -17,13 +17,18 @@ export default function Extensions() {
{extensions
.filter((x) => x.name.indexOf(filter) >= 0)
.map((extension) => (
- <div className={'col col--6'} key={extension.name} style={styles.column}>
+ <div
+ className={'col col--6'}
+ key={extension.name}
+ style={styles.column}
+ >
<div style={styles.card}>
<h3>
<code style={styles.title}>{extension.name}</code>
</h3>
<p style={styles.description}>
- {extension.comment.charAt(0).toUpperCase() + extension.comment.slice(1)}
+ {extension.comment.charAt(0).toUpperCase() +
+ extension.comment.slice(1)}
</p>
</div>
</div>
diff --git a/apps/reference/src/components/GithubCard.js b/apps/reference/src/components/GithubCard.js
index 3eea2d0cef9..67f4bd2e13b 100644
--- a/apps/reference/src/components/GithubCard.js
+++ b/apps/reference/src/components/GithubCard.js
@@ -1,6 +1,12 @@
import React from 'react'
-export default function GithubCard({ title, description, href, stars, handle }) {
+export default function GithubCard({
+ title,
+ description,
+ href,
+ stars,
+ handle,
+}) {
return (
<a className={'card'} href={href} style={{ height: '100%' }}>
<div className="card__body">
diff --git a/apps/reference/src/components/HowCard.js b/apps/reference/src/components/HowCard.js
index 335c7f70bf1..de33c4d66e3 100644
--- a/apps/reference/src/components/HowCard.js
+++ b/apps/reference/src/components/HowCard.js
@@ -1,6 +1,11 @@
import React from 'react'
-export default function HowCard({ title, description, featureTitle, features }) {
+export default function HowCard({
+ title,
+ description,
+ featureTitle,
+ features,
+}) {
return (
<div className={'HowCard'}>
<div className={'card'} style={styles.card}>
diff --git a/apps/reference/src/components/Mermaid.js b/apps/reference/src/components/Mermaid.js
index f19b0326e20..9737b80edd3 100644
--- a/apps/reference/src/components/Mermaid.js
+++ b/apps/reference/src/components/Mermaid.js
@@ -30,7 +30,10 @@ export default function Mermaid({ graph, classNames, caption }) {
return (
<div className={`Mermaid ${classNames || ''}`}>
{caption && <figcaption>{caption}</figcaption>}
- <div className="graph" dangerouslySetInnerHTML={{ __html: rendered }}></div>
+ <div
+ className="graph"
+ dangerouslySetInnerHTML={{ __html: rendered }}
+ ></div>
</div>
)
}
diff --git a/apps/reference/src/components/Section.js b/apps/reference/src/components/Section.js
index 0f9fb07563a..940c7fba732 100644
--- a/apps/reference/src/components/Section.js
+++ b/apps/reference/src/components/Section.js
@@ -45,7 +45,7 @@ export default function Section({ title, id, style, children }) {
return (
<section className="section-lg">
- <div className="container Section">
+ <div className="Section container">
<h2
className={`${stylePropOptions[style]} Section-Title`}
ref={sectionRef}
diff --git a/apps/reference/src/components/Sponsors.js b/apps/reference/src/components/Sponsors.js
index 47bf8613d5f..63a41d7cd3b 100644
--- a/apps/reference/src/components/Sponsors.js
+++ b/apps/reference/src/components/Sponsors.js
@@ -45,7 +45,10 @@ export default function Sponsors() {
<div className="row is-multiline" style={{ paddingLeft: 15 }}>
{t.transactions.map((x, index) => (
<div className="col col--4" key={index}>
- <a className="avatar" href={`https://github.com/${x.sponsor}`}>
+ <a
+ className="avatar"
+ href={`https://github.com/${x.sponsor}`}
+ >
<img
className="avatar__photo avatar__photo--sm"
src={`https://github.com/${x.sponsor}.png`}