fix: replace Google Docs legal links with env-driven URLs

- Terms: /terms (or NEXT_PUBLIC_TERMS_URL)
- Privacy: /privacy (or NEXT_PUBLIC_PRIVACY_URL)
- Added Regulatory Status link to lps.lux.network
- All URLs env-configurable for white-label deployments
This commit is contained in:
2026-03-25 19:05:36 -07:00
parent fd545f7b09
commit bef6ccb4af
+17 -4
View File
@@ -1,14 +1,27 @@
import type { LinkDef } from '@hanzo/ui/types'
/**
* Legal links — use env vars for white-label deployments.
* Default to lps.lux.network for regulatory (shared across all brands).
*/
const termsUrl = process.env.NEXT_PUBLIC_TERMS_URL ?? '/terms'
const privacyUrl = process.env.NEXT_PUBLIC_PRIVACY_URL ?? '/privacy'
const regulatoryUrl = process.env.NEXT_PUBLIC_REGULATORY_URL ?? 'https://lps.lux.network/legal/regulatory-status'
const legal: LinkDef[] = [
{
title: 'Terms and Conditions',
href: 'https://docs.google.com/document/d/1mvkjr1w8Rv8ttirs1mu-_2fw_PXclOyS/preview',
newTab: true,
title: 'Terms of Service',
href: termsUrl,
newTab: termsUrl.startsWith('http'),
},
{
title: 'Privacy Policy',
href: 'https://docs.google.com/document/d/1vZjOKaNdOoThDIaVLERWxflQLtOsuvLn/preview',
href: privacyUrl,
newTab: privacyUrl.startsWith('http'),
},
{
title: 'Regulatory Status',
href: regulatoryUrl,
newTab: true,
},
]