Skip to content

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

cleans up the config page

Copple0e2b6b01ef6a
diff --git a/apps/reference/_cli/config.mdx b/apps/reference/_cli/config.mdx
index 356f7fa9658..0e62403dec6 100644
--- a/apps/reference/_cli/config.mdx
+++ b/apps/reference/_cli/config.mdx
@@ -1,6 +1,7 @@
---
id: config
title: Configuration
+toc_max_heading_level: 2
---
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY -->
@@ -17,19 +18,18 @@ This file is located in the `supabase` folder under `supabase/config.toml`.
## General
-### `project_id`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `project_id` | `true` | `` |
+### `project_id`
A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`.
-See also:
-
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>None</code></li>
+</ul>
+<br />
@@ -39,53 +39,59 @@ See also:
## API
-### `api.port`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `api.port` | `true` | `54321` |
+### `api.port`
Port to use for the API URL.
-See also:
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>54321</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://postgrest.org/en/stable/configuration.html">PostgREST configuration</a></li></ul>
+</li>
+</ul>
-- [PostgREST configuration](https://postgrest.org/en/stable/configuration.html)
-
+<br />
### `api.extra_search_path`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `api.extra_search_path` | `true` | `["extensions"]` |
-
Extra schemas to add to the `search_path` of every request.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>["extensions"]</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://postgrest.org/en/stable/configuration.html">PostgREST configuration</a></li></ul>
+</li>
-- [PostgREST configuration](https://postgrest.org/en/stable/configuration.html)
+</ul>
+<br />
### `api.max_rows`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `api.max_rows` | `true` | `1000` |
-
The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests.
-See also:
-
-
-- [PostgREST configuration](https://postgrest.org/en/stable/configuration.html)
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>1000</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://postgrest.org/en/stable/configuration.html">PostgREST configuration</a></li></ul>
+</li>
+</ul>
+<br />
@@ -95,37 +101,41 @@ See also:
## Database
-### `db.port`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `db.port` | `true` | `54322` |
+### `db.port`
Port to use for the local database URL.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>54322</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://postgrest.org/en/stable/configuration.html">PostgreSQL configuration</a></li></ul>
+</li>
-- [PostgreSQL configuration](https://postgrest.org/en/stable/configuration.html)
+</ul>
+<br />
### `db.major_version`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `db.major_version` | `true` | `14` |
-
The database major version to use. This has to be the same as your remote database's. Run `SHOW server_version;` on the remote database to check.
-See also:
-
-
-- [PostgreSQL configuration](https://postgrest.org/en/stable/configuration.html)
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>14</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://postgrest.org/en/stable/configuration.html">PostgreSQL configuration</a></li></ul>
+</li>
+</ul>
+<br />
@@ -135,19 +145,18 @@ See also:
## Dashboard
-### `studio.port`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `studio.port` | `true` | `54323` |
+### `studio.port`
Port to use for Supabase Studio.
-See also:
-
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>54323</code></li>
+</ul>
+<br />
@@ -157,23 +166,25 @@ See also:
## Local Development
-### `inbucket.port`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `inbucket.port` | `true` | `54324` |
+### `inbucket.port`
Port to use for the email testing server web interface.
Emails sent with the local dev setup are not actually sent - rather, they are monitored, and you can view the emails that would have been sent from the web interface.
-See also:
-
-
-- [Inbucket documentation](https://www.inbucket.org)
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>54324</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://www.inbucket.org">Inbucket documentation</a></li></ul>
+</li>
+</ul>
+<br />
@@ -183,124 +194,135 @@ See also:
## Auth
-### `auth.site_url`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.site_url` | `true` | `"http://localhost:3000"` |
+### `auth.site_url`
The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>"http://localhost:3000"</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.additional_redirect_urls`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.additional_redirect_urls` | `true` | `["https://localhost:3000"]` |
-
A list of _exact_ URLs that auth providers are permitted to redirect to post authentication.
-See also:
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>["https://localhost:3000"]</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
+</ul>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
-
+<br />
### `auth.jwt_expiry`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.jwt_expiry` | `true` | `3600` |
-
How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week).
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>3600</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.enable_signup`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.enable_signup` | `true` | `true` |
-
Allow/disallow new user signups to your project.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>true</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.email.enable_signup`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.email.enable_signup` | `true` | `true` |
-
Allow/disallow new user signups via email to your project.
-See also:
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>true</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
+</ul>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
-
+<br />
### `auth.email.double_confirm_changes`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.email.double_confirm_changes` | `true` | `true` |
-
If enabled, a user will be required to confirm any email change on both the old, and new email addresses. If disabled, only the new email is required to confirm.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>true</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.email.enable_confirmations`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.email.enable_confirmations` | `true` | `true` |
-
If enabled, users need to confirm their email address before signing in.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>true</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.external.<provider>.enabled`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.external.<provider>.enabled` | `true` | `true` |
-
Use an external OAuth provider. The full list of providers are:
- `apple`
@@ -317,43 +339,52 @@ Use an external OAuth provider. The full list of providers are:
- `spotify`
-See also:
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>true</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
+</ul>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
-
+<br />
### `auth.external.<provider>.client_id`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.external.<provider>.client_id` | `true` | `""` |
-
Client ID for the external OAuth provider.
-See also:
-
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>""</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+</ul>
+<br />
### `auth.external.<provider>.secret`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| `auth.external.<provider>.secret` | `true` | `""` |
-
Client secret for the external OAuth provider.
-See also:
-
-
-- [Auth Server configuration](https://supabase.com/docs/reference/tools/reference-auth)
+<ul>
+<li>Required: <code>true</code></li>
+<li>Default: <code>""</code></li>
+<li>
+<span>See also:</span>
+<ul><li><a href="https://supabase.com/docs/reference/tools/reference-auth">Auth Server configuration</a></li></ul>
+</li>
+</ul>
+<br />
diff --git a/packages/spec/src/docs/templates/ConfigTemplate.ts b/packages/spec/src/docs/templates/ConfigTemplate.ts
index 29e74aa534f..9a4029a1f58 100644
--- a/packages/spec/src/docs/templates/ConfigTemplate.ts
+++ b/packages/spec/src/docs/templates/ConfigTemplate.ts
@@ -2,6 +2,7 @@ const template = `
---
id: config
title: Configuration
+toc_max_heading_level: 2
---
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY -->
@@ -15,20 +16,22 @@ title: Configuration
## <%= section.title %>
<% section.parameters.forEach(function(parameter){ %>
-### \`<%- parameter.title %>\`
-| Parameter | Required | Default |
-| :-------- | :------- | :------------------------- |
-| \`<%- parameter.title %>\` | \`<%= parameter.required %>\` | \`<%- parameter?.default %>\` |
+### \`<%- parameter.title %>\`
<%- parameter.description %>
-See also:
-
-<% parameter.links?.forEach(function(link){ %>
-- [<%- link.name %>](<%- link.link %>)
-<% }); %>
-
+<ul>
+<li>Required: <code><%= parameter.required %></code></li>
+<li>Default: <code><%- parameter?.default ? parameter?.default : 'None' %></code></li><% if(parameter?.links?.length){ %>
+<li>
+<span>See also:</span>
+<ul><% parameter.links?.forEach(function(link){ %><li><a href="<%- link.link %>"><%- link.name %></a></li><% }); %></ul>
+</li>
+<% } %>
+</ul>
+
+<br />
<% }); %>
<% }); %>