mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
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:
@@ -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,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user