Skip to content

Commit 3c3f85a

Browse files
chore(docs): feature flag compliance content (supabase#38527)
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
1 parent ec66a5d commit 3c3f85a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { GlobalMenuItems, NavMenuConstant, NavMenuSection } from '../Naviga
77
const {
88
authenticationShowProviders: allAuthProvidersEnabled,
99
billingAll: billingEnabled,
10+
docsCompliance: complianceEnabled,
1011
'docsSelf-hosting': selfHostingEnabled,
1112
sdkCsharp: sdkCsharpEnabled,
1213
sdkDart: sdkDartEnabled,
@@ -16,6 +17,7 @@ const {
1617
} = isFeatureEnabled([
1718
'authentication:show_providers',
1819
'billing:all',
20+
'docs:compliance',
1921
'docs:self-hosting',
2022
'sdk:csharp',
2123
'sdk:dart',
@@ -2192,6 +2194,7 @@ export const security: NavMenuConstant = {
21922194
{
21932195
name: 'Compliance',
21942196
url: undefined,
2197+
enabled: complianceEnabled,
21952198
items: [
21962199
{ name: 'SOC 2', url: '/guides/security/soc-2-compliance' },
21972200
{ name: 'HIPAA', url: '/guides/security/hipaa-compliance' },

packages/common/enabled-features/enabled-features.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"database:replication": true,
3333
"database:roles": true,
3434

35+
"docs:compliance": false,
3536
"docs:self-hosting": true,
3637

3738
"feedback:docs": true,

packages/common/enabled-features/enabled-features.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
"description": "Enable the database roles page"
113113
},
114114

115+
"docs:compliance": {
116+
"type": "boolean",
117+
"description": "Enable documentation on compliance"
118+
},
115119
"docs:self-hosting": {
116120
"type": "boolean",
117121
"description": "Enable documentation for self-hosting"
@@ -258,6 +262,7 @@
258262
"dashboard_auth:sign_in_with_email",
259263
"database:replication",
260264
"database:roles",
265+
"docs:compliance",
261266
"docs:self-hosting",
262267
"feedback:docs",
263268
"integrations:vercel",

0 commit comments

Comments
 (0)