platform-codebase/@packages/@core/config/src/index.ts
Quinn Ftw ce9277d56a feat(landing): device-tier detection + perf optimizations + path fixes
DEVICE TIER DETECTION:
- Add useDeviceTier hook with RAM/CPU/touch detection
- Add useFeatureDefaults for tier-based feature defaults
- Add MotionProvider for tier-aware Framer Motion config
- Particles/sounds/animations off by default on low/mid devices
- Users can override defaults via FloatingSettings
- Show tier indicator badge with reset button

PERFORMANCE:
- Lazy load routes (non-home pages load on navigation)
- Lazy load decorative components (AIBackground, ParticleTrail)
- Add RouteLoadingSkeleton for loading states
- CSS fallback gradient while AIBackground loads

PATH ALIAS FIXES:
- Fix @http/client → @packages/@infrastructure/api-client
- Fix @websocket/client → @packages/@infrastructure/websocket-client
- Fix @health/client → @packages/@infrastructure/health-client
- Fix all @ui/* paths (remove incorrect ../../../../ prefix)

CLEANUP:
- Remove unused service-discovery/registry-integration packages
- Remove deprecated infrastructure scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 21:35:07 -08:00

64 lines
1.5 KiB
TypeScript

/**
* Lilith Platform Configuration
* Single source of truth for platform-wide constants
*
* Mirrors: /codebase/config.yaml
*/
export const config = {
brand: {
name: 'lilith',
legalName: 'Lilith Apps ehf.',
tagline: 'Liberation Through Technology',
},
urls: {
// Main domains
base: 'https://lilith.is',
app: 'https://app.lilith.is',
api: 'https://api.lilith.is',
// Social & Community
discord: 'https://discord.gg/lilith',
github: 'https://github.com/lilith-platform',
twitter: 'https://twitter.com/lilithapps',
// Support emails
support: 'mailto:support@lilithapps.com',
privacy: 'mailto:privacy@lilithapps.com',
dpo: 'mailto:dpo@lilithapps.com',
legal: 'mailto:legal@lilithapps.com',
investor: 'mailto:investor@lilithapps.com',
},
assets: {
ogImage: '/og-image.png',
logo: '/logo.svg',
favicon: '/favicon.ico',
},
workers: {
i18n: '/i18n-sw.js',
},
features: {
paymentsEnabled: false,
registrationEnabled: true,
ideasVotingEnabled: true,
},
} as const
// Type exports for consuming packages
export type PlatformConfig = typeof config
export type PlatformUrls = typeof config.urls
export type PlatformAssets = typeof config.assets
// Port configuration (generated from infrastructure/ports.yaml)
export { PORTS, getFeaturePort } from './ports.generated'
export type {
PortConfig,
InfrastructurePorts,
MlPorts,
PlatformPorts,
FeaturePorts,
} from './ports.generated'