import type { AppConfig } from './core/types' export const appConfig: AppConfig = { modules: { base: { name: 'base', enabled: true, lazy: false, config: { nostr: { relays: JSON.parse(import.meta.env.VITE_NOSTR_RELAYS || '["wss://relay.damus.io", "wss://nos.lol"]') }, auth: { sessionTimeout: 24 * 60 * 60 * 1000, // 24 hours }, pwa: { autoPrompt: true } } }, 'nostr-feed': { name: 'nostr-feed', enabled: true, lazy: false, config: { refreshInterval: 30000, // 30 seconds maxPosts: 100, adminPubkeys: JSON.parse(import.meta.env.VITE_ADMIN_PUBKEYS || '[]'), feedTypes: ['announcements', 'general'] } }, market: { name: 'market', enabled: true, lazy: false, config: { defaultCurrency: 'sats', paymentTimeout: 300000, // 5 minutes maxOrderHistory: 50 } }, chat: { name: 'chat', enabled: true, lazy: false, // Load on startup to register routes config: { maxMessages: 500, autoScroll: true, showTimestamps: true } }, events: { name: 'events', enabled: true, lazy: false, config: { apiConfig: { baseUrl: import.meta.env.VITE_LNBITS_BASE_URL || 'http://localhost:5000', apiKey: import.meta.env.VITE_API_KEY || '' }, ticketValidationEndpoint: '/api/tickets/validate', maxTicketsPerUser: 10 } } }, features: { pwa: true, pushNotifications: true, electronApp: false, developmentMode: import.meta.env.DEV } } export default appConfig