mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Part of DOCS-1739 ## Problem People who tried the Option 1 navigation got stuck on these pages: - **Slow queries:** readers looked for a way to debug a slow query and didn't find the guide in the nav. Its title, "Log slow and failing queries", names the mechanism, not the task. - **JWT:** The Supabase way to build says Auth "issues a signed JWT" without saying what a JWT is. - **Docker self-hosting:** the guide opens with its own contents list, which repeats the table of contents beside it. - **Launch readiness:** readers who opened Deploy to production to ask "am I ready to launch?" found a page about branching and environments. Neither checklist is linked from it. ## Solution - **Slow-query title.** The title becomes "Find slow and failing queries", and the nav label in both navigations becomes "Find slow queries". The description still says "log slow queries", so search keeps matching. Five inbound links now use the new title. - **JWT link.** The first mention reads "JSON Web Token (JWT)" and links to the JWT guide. - **Launch intro.** Two sentences near the top of Deploy to production link the production checklist and the production security checklist. - **Docker contents list.** The in-page list is gone. Nothing linked to its anchor. ## Manual testing 1. Open [the slow-query guide on the preview](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/observability/log-slow-queries). The title reads "Find slow and failing queries", and the sidebar entry reads "Find slow queries". 2. Open [The Supabase way to build](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build). Under Auth, "JSON Web Token (JWT)" links to the JWT guide. 3. Open [Deployment and branching](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/deployment). The third paragraph links both production checklists. 4. Open [Self-hosting with Docker](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/self-hosting/docker). The page goes from the intro straight to Before you begin, with no Contents list.
419 lines
16 KiB
TypeScript
419 lines
16 KiB
TypeScript
import { isFeatureEnabled } from 'common/enabled-features'
|
|
|
|
import type { NavMenuConstant } from '@/components/Navigation/Navigation.types'
|
|
|
|
const {
|
|
billingAll: billingEnabled,
|
|
docsCompliance: complianceEnabled,
|
|
docsFullPlatform: fullPlatformEnabled,
|
|
} = isFeatureEnabled(['billing:all', 'docs:compliance', 'docs:full_platform'])
|
|
|
|
export const runAndManage: NavMenuConstant = {
|
|
icon: 'platform',
|
|
title: 'Run and manage',
|
|
url: '/guides/platform',
|
|
items: [
|
|
{
|
|
name: 'Projects and compute',
|
|
id: 'projects-and-compute',
|
|
items: [
|
|
{
|
|
name: 'Compute and disk',
|
|
url: '/guides/platform/compute-and-disk',
|
|
enabled: fullPlatformEnabled,
|
|
},
|
|
{
|
|
name: 'Database and disk size',
|
|
url: '/guides/platform/database-size',
|
|
enabled: fullPlatformEnabled,
|
|
},
|
|
{ name: 'Performance tuning', url: '/guides/platform/performance' },
|
|
{ name: 'Regions', url: '/guides/platform/regions' },
|
|
{
|
|
name: 'Transfer, pause or delete',
|
|
items: [
|
|
{
|
|
name: 'Organization transfers',
|
|
enabled: fullPlatformEnabled,
|
|
items: [
|
|
{ name: 'Transfer a project', url: '/guides/platform/project-transfer' },
|
|
{
|
|
name: 'Requirements',
|
|
url: '/guides/platform/project-transfer/requirements',
|
|
},
|
|
{
|
|
name: 'Changes after a transfer',
|
|
url: '/guides/platform/project-transfer/what-changes',
|
|
},
|
|
{
|
|
name: 'Transfer project ownership',
|
|
url: '/guides/platform/project-transfer/transfer-ownership',
|
|
},
|
|
{
|
|
name: 'Vercel-managed projects',
|
|
url: '/guides/platform/project-transfer/vercel-marketplace',
|
|
},
|
|
{
|
|
name: 'Troubleshooting',
|
|
url: '/guides/platform/project-transfer/troubleshooting',
|
|
},
|
|
],
|
|
},
|
|
{ name: 'Free project pausing', url: '/guides/platform/free-project-pausing' },
|
|
{
|
|
name: 'Pause a Pro or Team project',
|
|
url: '/guides/platform/project-transfer/pause-project',
|
|
enabled: fullPlatformEnabled,
|
|
},
|
|
{ name: 'Delete a project', url: '/guides/platform/delete-project' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Network, SSL and domains',
|
|
id: 'network-ssl-and-domains',
|
|
items: [
|
|
{ name: 'SSL enforcement', url: '/guides/platform/ssl-enforcement' },
|
|
{
|
|
name: 'Network restrictions',
|
|
url: '/guides/platform/network-restrictions',
|
|
},
|
|
{ name: 'PrivateLink', url: '/guides/platform/privatelink' },
|
|
{ name: 'Dedicated IPv4 address', url: '/guides/platform/ipv4-address' },
|
|
{ name: 'Custom domains', url: '/guides/platform/custom-domains' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Team',
|
|
id: 'team',
|
|
items: [
|
|
{ name: 'Roles and permissions', url: '/guides/platform/access-control' },
|
|
{
|
|
name: 'Single sign-on (SSO)',
|
|
enabled: fullPlatformEnabled,
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/sso' },
|
|
{
|
|
name: 'Sign-in flows',
|
|
items: [
|
|
{ name: 'Understanding sign-in flows', url: '/guides/platform/sso/login-flows' },
|
|
{
|
|
name: 'Choosing a sign-in flow',
|
|
url: '/guides/platform/sso/choosing-login-flow',
|
|
},
|
|
],
|
|
},
|
|
{ name: 'SSO with Azure AD', url: '/guides/platform/sso/azure' },
|
|
{ name: 'SSO with Google Workspace', url: '/guides/platform/sso/gsuite' },
|
|
{ name: 'SSO with Okta', url: '/guides/platform/sso/okta' },
|
|
{ name: 'Multiple SSO providers', url: '/guides/platform/sso/multiple-providers' },
|
|
{
|
|
name: 'Testing and best practices',
|
|
url: '/guides/platform/sso/testing-best-practices',
|
|
},
|
|
{
|
|
name: 'Enterprise MCP authorization',
|
|
url: '/guides/platform/sso/enterprise-mcp-authorization',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Multi-factor auth (MFA)',
|
|
enabled: fullPlatformEnabled,
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/multi-factor-authentication' },
|
|
{
|
|
name: 'Enforce MFA on organization',
|
|
url: '/guides/platform/mfa/org-mfa-enforcement',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Personal access tokens',
|
|
url: '/guides/platform/personal-access-tokens',
|
|
enabled: fullPlatformEnabled,
|
|
},
|
|
{ name: 'Audit logs (team activity)', url: '/guides/security/platform-audit-logs' },
|
|
{
|
|
name: 'Team access to Postgres',
|
|
url: '/guides/platform/team-database-access',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Security and compliance',
|
|
id: 'security-and-compliance',
|
|
items: [
|
|
{
|
|
name: 'SOC 2, HIPAA and GDPR',
|
|
items: [
|
|
{
|
|
name: 'Shared responsibility model',
|
|
url: '/guides/deployment/shared-responsibility-model',
|
|
},
|
|
{
|
|
name: 'SOC 2 compliance',
|
|
url: '/guides/security/soc-2-compliance',
|
|
enabled: complianceEnabled,
|
|
},
|
|
{
|
|
name: 'HIPAA compliance',
|
|
enabled: complianceEnabled,
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/security/hipaa-compliance' },
|
|
{ name: 'HIPAA projects', url: '/guides/platform/hipaa-projects' },
|
|
],
|
|
},
|
|
{
|
|
name: 'GDPR compliance',
|
|
url: '/guides/security/gdpr-compliance',
|
|
enabled: complianceEnabled,
|
|
},
|
|
],
|
|
},
|
|
{ name: 'Secure the platform', url: '/guides/security/platform-security' },
|
|
{ name: 'Secure product configuration', url: '/guides/security/product-security' },
|
|
{ name: 'Security testing', url: '/guides/security/security-testing' },
|
|
{ name: 'Securing your npm installs', url: '/guides/security/npm-security' },
|
|
{ name: 'Rotate a leaked API key', url: '/guides/security/rotate-leaked-api-keys' },
|
|
{
|
|
name: 'Security checklist',
|
|
url: '/guides/security/production-checklist',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Backups and upgrades',
|
|
id: 'backups-and-upgrades',
|
|
items: [
|
|
{ name: 'Database backups', url: '/guides/platform/backups' },
|
|
{ name: 'Restore to a new project', url: '/guides/platform/clone-project' },
|
|
{
|
|
name: 'Upgrading Postgres',
|
|
url: '/guides/platform/upgrading',
|
|
enabled: fullPlatformEnabled,
|
|
},
|
|
{
|
|
name: 'Migrating within Supabase',
|
|
enabled: fullPlatformEnabled,
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/migrating-within-supabase' },
|
|
{
|
|
name: 'Restore Dashboard backup',
|
|
url: '/guides/platform/migrating-within-supabase/dashboard-restore',
|
|
},
|
|
{
|
|
name: 'Backup and restore using CLI',
|
|
url: '/guides/platform/migrating-within-supabase/backup-restore',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Billing and usage',
|
|
id: 'billing-and-usage',
|
|
enabled: billingEnabled,
|
|
items: [
|
|
{ name: 'Get set up for billing', url: '/guides/platform/get-set-up-for-billing' },
|
|
{ name: 'Manage your subscription', url: '/guides/platform/manage-your-subscription' },
|
|
{
|
|
name: 'Manage your usage',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/manage-your-usage' },
|
|
{
|
|
name: 'Compute and disk',
|
|
items: [
|
|
{ name: 'Compute', url: '/guides/platform/manage-your-usage/compute' },
|
|
{ name: 'Disk Size', url: '/guides/platform/manage-your-usage/disk-size' },
|
|
{
|
|
name: 'Disk Throughput',
|
|
url: '/guides/platform/manage-your-usage/disk-throughput',
|
|
},
|
|
{ name: 'Disk IOPS', url: '/guides/platform/manage-your-usage/disk-iops' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Egress, IPv4 and domains',
|
|
items: [
|
|
{ name: 'Egress', url: '/guides/platform/manage-your-usage/egress' },
|
|
{ name: 'IPv4', url: '/guides/platform/manage-your-usage/ipv4' },
|
|
{
|
|
name: 'Custom Domains',
|
|
url: '/guides/platform/manage-your-usage/custom-domains',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Auth users and MFA',
|
|
items: [
|
|
{
|
|
name: 'Monthly Active Users',
|
|
url: '/guides/platform/manage-your-usage/monthly-active-users',
|
|
},
|
|
{
|
|
name: 'Third-Party MAU',
|
|
url: '/guides/platform/manage-your-usage/monthly-active-users-third-party',
|
|
},
|
|
{
|
|
name: 'Monthly Active SSO Users',
|
|
url: '/guides/platform/manage-your-usage/monthly-active-users-sso',
|
|
},
|
|
{
|
|
name: 'MFA Phone',
|
|
url: '/guides/platform/manage-your-usage/advanced-mfa-phone',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Storage',
|
|
items: [
|
|
{ name: 'Storage Size', url: '/guides/platform/manage-your-usage/storage-size' },
|
|
{
|
|
name: 'Image Transformations',
|
|
url: '/guides/platform/manage-your-usage/storage-image-transformations',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Edge Functions and Realtime',
|
|
items: [
|
|
{
|
|
name: 'Edge Function Invocations',
|
|
url: '/guides/platform/manage-your-usage/edge-function-invocations',
|
|
},
|
|
{
|
|
name: 'Realtime Messages',
|
|
url: '/guides/platform/manage-your-usage/realtime-messages',
|
|
},
|
|
{
|
|
name: 'Realtime Peak Connections',
|
|
url: '/guides/platform/manage-your-usage/realtime-peak-connections',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Logs',
|
|
items: [
|
|
{ name: 'Logs', url: '/guides/platform/manage-your-usage/logs' },
|
|
{ name: 'Logs Ingest', url: '/guides/platform/manage-your-usage/logs-ingest' },
|
|
{ name: 'Logs Query', url: '/guides/platform/manage-your-usage/logs-query' },
|
|
{ name: 'Log Drains', url: '/guides/platform/manage-your-usage/log-drains' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Branching, PITR, replicas',
|
|
items: [
|
|
{ name: 'Branching', url: '/guides/platform/manage-your-usage/branching' },
|
|
{
|
|
name: 'Point-in-Time Recovery',
|
|
url: '/guides/platform/manage-your-usage/point-in-time-recovery',
|
|
},
|
|
{ name: 'Read Replicas', url: '/guides/platform/manage-your-usage/read-replicas' },
|
|
{ name: 'Pipelines', url: '/guides/platform/manage-your-usage/pipelines' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Invoices and credits',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/your-monthly-invoice' },
|
|
{ name: 'Credits', url: '/guides/platform/credits' },
|
|
],
|
|
},
|
|
{ name: 'Control your costs', url: '/guides/platform/cost-control' },
|
|
{
|
|
name: 'AWS Marketplace',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/aws-marketplace' },
|
|
{ name: 'Getting started', url: '/guides/platform/aws-marketplace/getting-started' },
|
|
{ name: 'Account setup', url: '/guides/platform/aws-marketplace/account-setup' },
|
|
{
|
|
name: 'Manage your AWS subscription',
|
|
url: '/guides/platform/aws-marketplace/manage-your-subscription',
|
|
},
|
|
{ name: 'AWS invoices', url: '/guides/platform/aws-marketplace/invoices' },
|
|
{ name: 'AWS Marketplace FAQ', url: '/guides/platform/aws-marketplace/faq' },
|
|
],
|
|
},
|
|
{ name: 'Billing FAQ', url: '/guides/platform/billing-faq' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Logs and monitoring',
|
|
id: 'logs-and-monitoring',
|
|
items: [
|
|
{
|
|
name: 'Read project data',
|
|
items: [
|
|
{ name: 'Query logs with SQL', url: '/guides/observability/advanced-log-filtering' },
|
|
{ name: 'Logs in Studio', url: '/guides/observability/logs' },
|
|
{ name: 'Logs in the CLI', url: '/guides/observability/cli-logs' },
|
|
{ name: 'Log sources and fields', url: '/guides/observability/log-field-reference' },
|
|
{ name: 'Advisors', url: '/guides/observability/advisors' },
|
|
{ name: 'Reports', url: '/guides/observability/reports' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Metrics API',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/observability/metrics' },
|
|
{ name: 'Grafana Cloud', url: '/guides/observability/metrics/grafana-cloud' },
|
|
{
|
|
name: 'Grafana self-hosted',
|
|
url: '/guides/observability/metrics/grafana-self-hosted',
|
|
},
|
|
{ name: 'Datadog', url: 'https://docs.datadoghq.com/integrations/supabase/' },
|
|
{ name: 'Elastic', url: 'https://www.elastic.co/docs/reference/integrations/supabase' },
|
|
{ name: 'Vendor-agnostic setup', url: '/guides/observability/metrics/vendor-agnostic' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Detect and diagnose',
|
|
items: [{ name: 'Detection checks', url: '/guides/observability/detecting' }],
|
|
},
|
|
{
|
|
name: 'Agent prompts',
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/observability/automate-with-agents' },
|
|
{ name: 'Health prompt', url: '/guides/observability/automate-with-agents/health' },
|
|
{ name: 'Security prompt', url: '/guides/observability/automate-with-agents/security' },
|
|
{
|
|
name: 'Performance prompt',
|
|
url: '/guides/observability/automate-with-agents/performance',
|
|
},
|
|
{ name: 'Resources prompt', url: '/guides/observability/automate-with-agents/usage' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Configure and export',
|
|
items: [
|
|
{ name: 'Configure logging', url: '/guides/observability/configure-logging' },
|
|
{
|
|
name: 'Find slow queries',
|
|
url: '/guides/observability/log-slow-queries',
|
|
},
|
|
{ name: 'Log drains', url: '/guides/observability/log-drains' },
|
|
{
|
|
name: 'Postgres connection logging',
|
|
url: '/guides/platform/postgres-connection-logging',
|
|
},
|
|
{ name: 'Client-side tracing', url: '/guides/observability/client-side-tracing' },
|
|
{ name: 'Sentry integration', url: '/guides/observability/sentry-monitoring' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Platform webhooks',
|
|
enabled: fullPlatformEnabled,
|
|
items: [
|
|
{ name: 'Overview', url: '/guides/platform/webhooks' },
|
|
{ name: 'Webhook events', url: '/guides/platform/webhooks/events' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|