mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Adds a `dashboard_auth:logo_link_url` custom content key so white-labeled deployments can point the logged-out logo link at their own marketing site instead of the hardcoded `https://supabase.com`. **Added:** - `dashboard_auth:logo_link_url` custom content key (schema, types, default `null`, sample value) **Changed:** - `SignInLayout` and `ForgotPasswordLayout` now resolve the marketing-site logo href from custom content, falling back to `https://supabase.com` — these two shared layouts cover all auth pages (sign-in, sign-in-sso, sign-in-mfa, sign-in-partner, forgot/reset password) in both the Next and TanStack runtimes ## To test - On a normal deployment (key `null`): visit `/sign-in` and `/forgot-password` logged out — the logo should still link to `https://supabase.com` - Set `"dashboard_auth:logo_link_url": "https://example.com"` in `apps/studio/hooks/custom-content/custom-content.json` locally — the logo on those pages should link to `https://example.com` - Signed-in contexts (`logoLinkToMarketingSite` unset) still link to `/organizations` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for configuring the URL linked from authentication-page logos. * Authentication logos now use the configured destination when available. * Added a default destination to ensure logo links remain functional when no custom URL is set. * **Documentation** * Added sample configuration for the customizable authentication logo link. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
123 lines
3.6 KiB
JSON
123 lines
3.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
|
|
"app:title": {
|
|
"type": ["string", "null"],
|
|
"description": "Render a custom HTML title for the site"
|
|
},
|
|
|
|
"dashboard_auth:custom_provider": {
|
|
"type": ["string", "null"],
|
|
"description": "Show a custom provider on the sign in page (Continue with X). Will be deprecated by dashboard_auth:custom_providers."
|
|
},
|
|
|
|
"dashboard_auth:custom_providers": {
|
|
"type": ["array", "null"],
|
|
"description": "Show a custom provider on the sign in page (Continue with X)",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
|
|
"dashboard_auth:logo_link_url": {
|
|
"type": ["string", "null"],
|
|
"description": "The URL for the logo on the auth pages (sign in, forgot password, etc.) links to. Defaults to https://supabase.com"
|
|
},
|
|
|
|
"docs:row_level_security_guide_path": {
|
|
"type": ["string"],
|
|
"description": "The path to the row level security guide in the docs"
|
|
},
|
|
|
|
"organization:legal_documents": {
|
|
"type": ["array", "null"],
|
|
"description": "Renders a provided set of documents under the organization legal documents page",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"name": { "type": "string" },
|
|
"description": { "type": "string" },
|
|
"action": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": { "type": "string" },
|
|
"url": { "type": "string" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"project_homepage:client_libraries": {
|
|
"type": "array",
|
|
"description": "Renders a provided set of client libraries under the project's home page",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"language": { "type": "string" },
|
|
"officialSupport": { "type": "boolean" },
|
|
"releaseState": { "type": "string" },
|
|
"docsUrl": { "type": "string" },
|
|
"gitUrl": { "type": "string" },
|
|
"altIconName": { "type": "string" }
|
|
},
|
|
"required": ["language", "officialSupport", "docsUrl"]
|
|
}
|
|
},
|
|
"project_homepage:example_projects": {
|
|
"type": ["array", "null"],
|
|
"description": "Renders a provided set of example projects under the project's home page",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": { "type": "string" },
|
|
"description": { "type": "string" },
|
|
"iconUrl": { "type": "string" },
|
|
"url": { "type": "string" }
|
|
}
|
|
}
|
|
},
|
|
|
|
"logs:default_query": {
|
|
"type": ["string", "null"],
|
|
"description": "Renders a default query when landing on the logs explorer"
|
|
},
|
|
|
|
"infra:cloud_providers": {
|
|
"type": ["array"],
|
|
"description": "Filters the valid cloud providers",
|
|
"items": {
|
|
"type": "string",
|
|
"enum": ["AWS", "AWS_K8S", "AWS_NIMBUS", "FLY"]
|
|
}
|
|
},
|
|
"infra:aws_nimbus_label": {
|
|
"type": "string",
|
|
"description": "The label of the AWS Nimbus provider"
|
|
},
|
|
|
|
"ssl:certificate_url": {
|
|
"type": "string",
|
|
"description": "The URL of the SSL certificate"
|
|
}
|
|
},
|
|
"required": [
|
|
"app:title",
|
|
"docs:row_level_security_guide_path",
|
|
"organization:legal_documents",
|
|
"project_homepage:client_libraries",
|
|
"project_homepage:example_projects",
|
|
"logs:default_query",
|
|
"infra:cloud_providers",
|
|
"infra:aws_nimbus_label",
|
|
"ssl:certificate_url"
|
|
],
|
|
"additionalProperties": false
|
|
}
|