Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ VITE_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
Now that we have the API credentials in place, let's create a helper file to initialize the Supabase client. These variables will be exposed
on the browser, and that's completely fine since we have [Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.

```js src/supabaseClient.jsx
```tsx src/supabaseClient.tsx
import { createClient } from '@supabase/supabase-js'

const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
Expand Down
7 changes: 6 additions & 1 deletion apps/docs/content/guides/platform/ipv4-address.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ IPv4 addresses are guaranteed to be static for ingress traffic. If your database

## Enabling the IPv4 add-on

You can enable the IPv4 add-on in your project's [add-ons settings](/dashboard/project/_/settings/addons). Enabling the add-on may briefly disable your database during reconfiguration.
You can enable the IPv4 add-on in your project's [add-ons settings](/dashboard/project/_/settings/addons).

<Admonition type="caution">
Note that direct database connections can experience a short amount of downtime when toggling the
add-on due to DNS reconfiguration and propagation. Generally, this should be less than a minute.
</Admonition>

## Read replicas and IPv4 add-on

Expand Down
31 changes: 18 additions & 13 deletions apps/docs/spec/api_v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,12 @@
"operationId": "v1-get-a-snippet",
"summary": "Gets a specific SQL snippet",
"parameters": [
{ "name": "id", "required": true, "in": "path", "schema": { "type": "uuid" } }
{
"name": "id",
"required": true,
"in": "path",
"schema": { "format": "uuid", "type": "string" }
}
],
"responses": {
"200": {
Expand Down Expand Up @@ -2070,10 +2075,10 @@
"schema": { "type": "string" }
},
{
"name": "resource_multiplier",
"name": "compute_multiplier",
"required": false,
"in": "query",
"schema": { "type": "string" }
"schema": { "minimum": 1, "maximum": 4, "type": "number" }
}
],
"requestBody": {
Expand Down Expand Up @@ -2219,10 +2224,10 @@
"schema": { "type": "string" }
},
{
"name": "resource_multiplier",
"name": "compute_multiplier",
"required": false,
"in": "query",
"schema": { "type": "string" }
"schema": { "minimum": 1, "maximum": 4, "type": "number" }
}
],
"requestBody": {
Expand Down Expand Up @@ -2849,12 +2854,12 @@
},
"release_channel": {
"type": "string",
"enum": ["internal", "alpha", "beta", "ga", "withdrawn"],
"enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"],
"description": "Release channel. If not provided, GA will be used."
},
"postgres_engine": {
"type": "string",
"enum": ["15"],
"enum": ["15", "17-oriole"],
"description": "Postgres engine version. If not provided, the latest version will be used."
}
},
Expand Down Expand Up @@ -3087,12 +3092,12 @@
},
"ReleaseChannel": {
"type": "string",
"enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
"enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"]
},
"PostgresEngine": {
"type": "string",
"description": "Postgres engine version. If not provided, the latest version will be used.",
"enum": ["15"]
"enum": ["15", "17-oriole"]
},
"CreateBranchBody": {
"type": "object",
Expand Down Expand Up @@ -4246,7 +4251,7 @@
"name": { "type": "string" },
"body": { "type": "string" },
"verify_jwt": { "type": "boolean" },
"resource_multiplier": { "type": "string" }
"compute_multiplier": { "type": "number", "minimum": 1, "maximum": 4 }
},
"required": ["slug", "name", "body"]
},
Expand All @@ -4264,7 +4269,7 @@
"import_map": { "type": "boolean" },
"entrypoint_path": { "type": "string" },
"import_map_path": { "type": "string" },
"resource_multiplier": { "type": "string" }
"compute_multiplier": { "type": "number" }
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
},
Expand All @@ -4282,7 +4287,7 @@
"import_map": { "type": "boolean" },
"entrypoint_path": { "type": "string" },
"import_map_path": { "type": "string" },
"resource_multiplier": { "type": "string" }
"compute_multiplier": { "type": "number" }
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
},
Expand All @@ -4292,7 +4297,7 @@
"name": { "type": "string" },
"body": { "type": "string" },
"verify_jwt": { "type": "boolean" },
"resource_multiplier": { "type": "string" }
"compute_multiplier": { "type": "number", "minimum": 1, "maximum": 4 }
}
},
"V1StorageBucketResponse": {
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/spec/supabase_py_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6019,9 +6019,9 @@ functions:
type: string
description: Set this to limit rows of foreign tables instead of the parent table.
notes: |
Limit the query result by starting at an offset (`from`) and ending at the offset (`from + to`). Only records within this range are returned. This respects the query order and if there is no order clause the range could behave unexpectedly.
Limit the query result by starting at an offset (`start`) and ending at the offset (`end`). Only records within this range are returned. This respects the query order and if there is no order clause the range could behave unexpectedly.

The `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third and fourth rows of the query.
The `start` and `end` values are 0-based and inclusive: `range(1, 3)` will include the second, third and fourth rows of the query.
examples:
- id: with-select
name: With `select()`
Expand Down
Loading
Loading